[#1]: Moved Unit classes to own module

Moved unit classes to their own module, added function for determing
unit type from a string.