server: refactor middleware registration

Move the code from the main server file into multiple smaller scripts
in `server/boot/`.

/to @ritch Please review.

The main server file is not as clean as I would like it to be, but this is the best I can come up with without having to prefix all `server/boot` files with numbers, e.g. `server/boot/01-compress.js`.