Fix removing observers correctly

Thanks to @idpaterson for reporting this in https://github.com/bitstadium/HockeySDK-iOS/pull/64
FIx usage value being reset on every app cold start
Add namespace to local methods and make the C function static to avoid linker problems when adding similar libraries using PLCR