Added per request settings.
Small refactor. Changed " to '.
Created LogWrapper class for easy unittesting involving logs.
Created middleware manager.