Add DeviceManager, PythonAPI

- Both HtmlAPI and JsonAPI go through PythonAPI
- DeviceManager keeps device instances accessible