Convenience method for server setup
Optional callback for serve()