Implemented REST api

Resolving Issue #18