Run header and footer now in 1 line of JSON

Header and footer are now in json, intent is to make status functions
depend on these header and footer lines.