Export 'Server' instead of 'middlewares'.

This object is growing to contain more than just middlewares, so we'll
just make it a generic constructor.

This is a breaking change for existing callers, but existing callers are
all just prototypes so it doesn't matter too much.
Test the wrapMiddlewareWithAngular function.