Feature/refactored controllers

Refactored controllers. Specifically made a before filter for finding specific model, and made the index and destroy methods respond with json.