Added gradle task for local tomcat deployment & JRebel support
Fixed some URLs and security checking issues