Fixes #1 - implements basic REST API