CLC-1073 - [Front-end] Put directives in modules, create title service, fix whitespace and prefix directives

https://jira.media.berkeley.edu/jira/browse/CLC-1073