Added support for java options config file and log4j config

Fixes #75
Fixes #76