added rest api and spa app, implemented fastboot reboot