add support for custom server

custom servers allow for the user to test libs which require ajax or
websockets.