First attempt at addressing issue #5 https://github.com/LightBlueProject/LightBlue/issues/5

Handling metadata writes when the metadata file is locked
Refactoring and renaming
Changes from PR applied
Merge pull request #37 from campbellja/FileLockOnMetadataUpdate

First attempt at handling writes to a locked metadata file