File type detection and error handling implemented.
SAX-machine replaced with normal Nokogori IO parser for 0.0.2 release.