added save method to Snippet class
add permissions to the views, associate snippets with author