Moved module init code to somewhere more expicit.
Some cleanup and commenting.
Merge branch 'master' into fix-method-init

Conflicts:
	modules/ui-common
Fixed an error with names not being properly escaped for sending to kernel calls.
Merge branch 'master' into fix-method-init
Merge pull request #39 from kbase/fix-method-init

Fix method init