Changed Directory to use enable_shared_from_this to avoid concurrency issues during destruction
Changed to use protobuf_lite rather than full protobuf library.
Use pending count to wait for SetNewParent to finish
Style corrections
More stylistic changes
Merge pull request #15 from breese/next

Thread sanitising via std::enable_shared_from_this