Changes to media_controller

Fix regression with start_offset and end_offset. Closes #104
Changed json errors to match application_controller json errors.
Fixed a bug casuing DoubleRenderError if no parameters are supplied.
Possible problem: ampersands are now encoded: '\u0026'