Issue #21 - reduce number of calls to config.ini

Also fixed error where encrypted endpoints were being improperly
rejected due to "=" in url.