Cleanup

Some cleanup in the middleware.js file
Added an editorconfig to keep things consistent
Remove this section since it is the same as the values above