index: It's HEAD, not POST
refactor device status/image code, part 1 of many