Certificate validation with pinning

Implemented two new options on the configuration file:
* `VERIFY`: if true, will make the server certificate be validated as a
browser would. Defaults to no validation for backwards compatibility
with previous version.
* `CA_BUNDLE`: path to file containing additional certificate(s) to
consider valid, such as a self-signed certificate used by your server.