Remove use of node.js globals.

Remove upload limit middleware for now.

Replace loader logger with debug module - much better.