A lof of changes, fixes and improvements:

Added new file formats: :html, :html5, :mjpeg.
Fixed some bugs with exception handling.
Improve logging.