CMS-2299 Move portal and admin into seperate modules. Moved some classes to make separation simpler.