add. view for thin client, services requests indpendent of user sessions.
add. error_code property to MetricsAPIError exception class.  Move defnition of error codes into __init__.
add. raise MetricsAPIErrors on badly formed URLs, handle in views.