Added vmoptions usage to store and load custom java options. Added data dir setting.