Branch/tdg units

@eric79 @youngca 
Here's the first pass of getting unit icons so that they can be added to the map.
I think `this` will be undefined in this function since it's being invoked as a straight function, rather than an object's method.  Probably want to use `self` here.