Various improvements to get layouts and 5D modules functional.
Added various modules.
Ported some functions to use D7 conventions.