fix termination
add rest api
add websocket api
split serverHelpers into applicationHelpers and mainAppHelpers
add restartWatcher helper,
trigger restartWatcher on actions.restart
actions.installApp/Plugin and actions.uninstallApp/Plugin correctly waits for app fully restart
break compatibility of module.exports