Change complex key to simple string for easier marshaling
Add API for HTTP access