Cleanup and bug fixes.
Bug fixes, and added a simple GET REST endpoint.