Made the router convert paths given to it to regular expressions

Now paths with parameters will work and pass the keys as a second argument to the callback