Added possibility to add middleware to your routes

As the title says. Also added more documentation.