Started moving interface methods from core file
Merging from upstream
Reorganized methods loosely into interface methods and core logic in line with the MVC pattern. Perhaps later an alternate interface can be constructed, such as a websocket connector.

Import statements and variable references will have to be cleaned up in the future.