Core implementation

Implements REST & WebSockets