fixes #125: Some REST enhancements and bug fixes