large refactor to support ubuntu installs. Apps all starting up on CentOS but not functionality tested.