Validate the format of Section IDs in JSON

By establishing that Section IDs follow some rules, we can pre-empt errors when
constructing the data we send to Publishing API.
Rebased