Gastrointestinal drug capsules and pellets