Added java7 to the server
Fixed csrf token generation