Hashtable for extension-type mapping

This will allow to easily extend range of known extensions for file
handler.
Types Handling Fix