remove CouchDB from MainController which is not using it
add handler detach to AdminController to delete attachment
add fields 'type' and 'ng-click' to button for removing attachments