Use MIMETYPEs from recording classes instead of hard-coded strings.
Return plain text error messages instead of XML.
Send a recording when the request is for a generic bsml file rather than exact content-type.
Remove unused code.
Improve error reporting, remove debugging and tidy code.