Java: fix for trailing slash problem

proposed fix for trailing slash problem that retains check to avoid
baddomain attacks (ie: server.com.baddomain.com)
Update proxy.jsp
Update proxy.jsp
more clean up
update using url split
cleaning up error message
more error message cleanup
Merge branch 'master' of https://github.com/esoekianto/resource-proxy-1 into esoekianto-master

Conflicts:
	Java/proxy.jsp