Add timeout to pb endpoints

Update the HTTP endpoint timeout to accept non-get ints only
Add support for an app.config setting for 2i timeouts