Make separate module for unit ids

Unit ids are important enough to need their own module. I've moved the generator
into it. In adddtion I've added a class to parse them as well as utility
functions to generate and parse r3d align style matlab ids to and from unit ids.
This should prove useful.