pep8 fix
Refactor into functions
Rework to use initial fast-poll cron job to trigger first sync
Install cron scripts during install hook
Don't install cron scripts at 'install', just default run config to True
fix wrong string format key
add missing newline that breaks cron job
include username for crontab
remove syntax error
Fix bugs in configuration and endpoint update

Add use_swift config

update existing endpoint by delete/create, as the keystone charm does.

add some additional logging
fix logic bug in calling update
Fix region-related bugs in code to add service

- Add region config to charm, pass through to sync script.

- Fix bugs in filtering services and endpoints in update_product_streams_service()

- Log exceptions in update_product_streams_service()
Use correct key to get service id
Fix broken lockfile \n - Only install cleanup() after we know we're going to be the owner of the lockfile
move logging much earlier to ensure that we do handle simplestreams log messages
Merge pull request #2 from mikemccracken/use-cron-poll

Use cron poll, many bug fixes for service creation