[DEV-1610] Add TransactionMiddleware to URLMiddleware conf. Adjust order of middleware to match order in settings.