Add detectLocator and update driver/adaptor with collision and locator events.
adds locator detection, fix idlen and params for streamming data.
Fixes issue with extraParams being undefined.
Remove commented out line, added brackets to single line if statement.
Added locator example.
Added var declaration to extraParams
Merge pull request #26 from hybridgroup/add-locator-detection

Add locator detection.