CMS-2299 Move portal and admin into seperate modules. Moved some classes from web to core.