adding restful actions that respond with json for managing notes (except for new/edit, since
this is a json api)