Modified Status codes to more closely conform to REST conventions.
HTTPS is not required for demo api.
Added 'require_https' parameter. API now can use HTTP basic auth. Added set_http_status_code method.