Fixed hub generation issues

Close #105
Restructured stl to bitmap modules

Changed some things to generic utility modules to eliminate duplication
Made Joe's layer manager actually work