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
Add .gitattributes file
support for protocol relative urls in config

updated logic of code to interpret '//' in proxy config as protocol
agnostic.
Merge pull request #37 from jgravois/master

support for protocol relative urls in config
Add download links, fixes #38
fix regex for split / and ?, then add john's changes #35
fix allowedReferers *
fix to return error url mismatch in json format instead of throwing exception
Merge pull request #39 from bsvensson/readme

Add download links, fixes #38
Merge pull request #40 from esoekianto/master

several fixes for 1.0 release
Look in current folder, fixes #41
update info url finding logic to look for indexOf /rest/services
Merge pull request #42 from bsvensson/dotnetconfiglocation

Look for proxy.config in current folder