Fleshed out functionality for static() middleware maker thing.