Fixed perms of init.d script and added setenf script for specifing java home, xmx and xms
values.