dh/refactor plat header v4

This supersedes #107, with 2 additional naming consistency patches to platform.h.