Update the way com and theme interact.

Moved some stuff in com to theme where it should have been.
Although com is still the only module that touches theme.
Update gateway.js greeting