refactor angular code into separate controllers and resources modules. create basic view for single entries. iinstall jsend-rails gem. add to_json methods on ActiveRecord models to send only necessary parameters in JSON responses. all JSON responses made JSEND-compliant. Angular functions expect JSEND and execute success callbacks.