Fixed small bug in ui binding that could lead to constructor being affected by binding. Altered module declaration so module could be referenced before construction, and to allow splitting a module declaration amongst multiple source files.