Changes to class based router

This commit 'Fixes #4' Changes made based of info found at:
https://github.com/joomla/joomla-cms/pull/3165,
May not need the proxy functions as component is 3.x compatible only.