split agent/dashboard, added upstart script
various fixes