Merge pull request #1371 from john-hill/debug-log

Debug log
sleeping and cloudwatch
Merge pull request #1375 from john-hill/sleep-worker

Sleep worker
Merge branch 'release-46' into develop