Update JSON API, add IDs to gaps

This API works perfectly with the Android app I've got going. Gaps in specific rooms are not necessarily the same so we need to give unique identifiers to them.