Added $.beacons('settings') and a few unit tests.