REST Implementation

PR WIP for #11