Small refactoring of JRoute::_()

This refactoring of JRoute::_() simplifies the code a bit, provides a small performance improvement and allows the router to specify if the URL needs to be https and is thus not completely dependent on the layout developer to remember to add the $ssl = true on the JRoute::_() call.