Lot of additions and filling out components.

Also added a library for drawing primitives which will be used for beam
weapons and the sector map.