Refactored environments. Small fixes
introduce router, move platform to routes
enable self code verification
improve error handling
tests for route connection and environment decorator
fix after rebase
added test for list
fix after rebase