Added endpoints for category. Cleaned up unused views.