Completed Instance and Application
Modified structure
introduce router, move platform to routes
enable self code verification
improve error handling
tests for route connection and environment decorator
fix after rebase