Add REST views (fixes #3)

fixes #3