Rewrote routing-parts of the dispatch-method to handle the new routes-array, wildcards are now also supported.