1.0.0 and policy API to deployment-handler

* policy API to deployment-handler /policy
* removed pycrypto of config - the same way as other apps
* simple upload of config to consul - curl
* preparation for policy-handler blueprint

Change-Id: I424a1ded0795562ea36b5409304cbb8b5a7e8a24
Issue-Id: DCAEGEN2-62
Signed-off-by: Alex Shatov <alexs@att.com>
diff --git a/policyhandler/policy_handler.py b/policyhandler/policy_handler.py
index 10633cd..50d59bc 100644
--- a/policyhandler/policy_handler.py
+++ b/policyhandler/policy_handler.py
@@ -60,28 +60,5 @@
     PolicyEngineClient.run()
     PolicyWeb.run()
 
-def upload_config_to_discovery():
-    """read the config from file and upload it to discovery"""
-    logger = logging.getLogger("policy_handler")
-    sys.stdout = LogWriter(logger.info)
-    sys.stderr = LogWriter(logger.error)
-
-    Config.load_from_file()
-
-    if not Config.load_from_file(Config.UPLOAD_CONFIG_FILE_PATH):
-        logger.info("not found config %s", Config.UPLOAD_CONFIG_FILE_PATH)
-        return
-
-    logger.info("========== upload_config_to_discovery ==========")
-    Config.upload_to_discovery()
-
-    logger.info("========== upload_config_to_discovery - get it back ==========")
-    Config.config = None
-    Config.load_from_file()
-    Config.discover()
-    logger.info("========== upload_config_to_discovery - done ==========")
-    return True
-
 if __name__ == "__main__":
-    if not upload_config_to_discovery():
-        run_policy_handler()
+    run_policy_handler()