Various changes.

Refactor CMS classes.
Add helper functions to RequestHandler family of classes.
Update core Service class.