Update Resource

Added update resource code to JS Model and View..
Added update resource code to Java ResourceController
Added update resource route
Fixed notifications to user when user deletes post
Made a couple of lines in the Java Resource Controller more terse.