Move generic REST methods from annotator_controller.rb to application_controller.rb