Added methods to actually call the registered handler for the rewrite permalink.

When adding a handler, adds the 'parse_query' action hook which checks the rewrite object for the given permalink (from the rewrite ID in the query vars) & then attempts to call any configured callback.
Now adds post types registered to a plugin/theme to the object's post_types array.