Move opening and closing of logger into controller.
Merge branch 'master' of github.com:ikeough/Dynamo