Refactor compileRules() to enable module access

Split compileRules() into compileRules() and public functions parseRule() and addRules().

~~~php
public function parseRule($pattern, $route); // Parse a pattern and return a UrlRule object.
public function addRules($rules, $addToBottom = false); // Adds rules to UrlManager at any time.
~~~