A lot more refactoring and improvements.
Completed portal creation, and controller linking. Still more work to do.