Added unit testing.

- Added unit testing framework
- Added a failing test case
Added license to unit tests.
Fixed #1, parse header instead of body for sensor id.
Import iVitality fixes.

- Add function to login using password hash
- Fix problem that duplicate sensors can be created
Improved robustness of the motion sensors.
- small improvement in upload robustness
- change ivitality settings
Improve robustness when calling from dispatch queues.

- Uploading now uses gcd and gcd timers instead of NSTimer
- Use gcd timer for CSSpatialProvider instead of NSTimer
NSTimer doesn't work when invoked in a dispatch queue
Using gcd for noise sensor.

Also added some freeing of gcd objects that was missing.
Fix bug that under circumstances can result in duplicate sensors.

- data flush and periodic upload now on the same serial dispatch queue
- remove warning
Merge pull request #3 from senseobservationsystems/unstable

Unstable