Added command line options for enable push, timeout and request type
Check http/https in the URI to enable cleartext/SSL
Made things build on mac