Reformatted code a bit
First round: added localhost check, started with user authentication verification.
Extended servlet with token functionality
corrected name of file
[fix] -  added  "set_locale_lang", "restore_locale_lang" and "set_java_options" calls and changed JAVA_OPTS to JAVA_OPTIONS as set in eXist-settings.sh,
Merge pull request #226 from zwobit/develop

[fix] -  run.sh now uses JAVA_OPTIONS and sets and unsets locale lang.
code review
update git ignore
Merge branch 'feature/code-review' into develop
Merge pull request #230 from shabanovd/develop

code review
Merge branch 'develop' of github.com:eXist-db/exist into feature/secure_jmx_servlet
Improve security of JMXservlet
- localhost is always allowed
- token can be provided
- check for session (e.g. for Monex) so a logged in(=authorized) user can use the application
Small refactoring
Small refactorings
Made reference to data directory more servlet like; review comments by DS.
Merge pull request #231 from dizzzz/feature/secure_jmx_servlet

Improve security of JMX servlet
Merge branch 'feature/secure_jmx_servlet' into develop
Merge branch 'develop' of github.com:eXist-db/exist into develop
Improvement of JMX-management code
Added some Java7 instruments
Made code in sync with Java7
Updated code after codereview input on GitHub Tracker.