Rewrite calls to mapValues to use map instead, since mapValues is lazy.
Remove in-file copyright notices.
Pass ServerConnection instance to Server init method to avoid vars in framework.