Fix leaking timers and other memory issues

Fix leaking timers and other memory issues
Merge pull request #188 from AzureAD/master

Master to dev podspec pull
Merge pull request #187 from AzureAD/dev

Fix leaking timers and other memory issues