implemented a basic rack service
implemented JSON vs HTML response format detection and cleaned up