Added REST end points for viewing snippets and creating new snippets.