Added more flow control to the promises.
Added string matching to the router.
The promises now receive a parameter with useful methods and informations.