Updated settings docs.
Little cleanup in urls.
Small cleaning of middlewares