Changes to support optionally always having embeded resources rendered as a JSON array even when there is only one. Requires changes to halbuilder- api, core, and json which were also forked for this change.