Moved the BBCode parser to a separate module

Removed the existing BBCode parser out of the editor directive and moved
it into its own module. Then included that parser back into the editor
directive as a require module.