Rest services

fixes #16