Added a Directive module which handles parsing of directives.