Start of a re-tooling of the amberio interface. Much more robust/extendible
and easier to use down the line. Still needs testing, but almost certainly
better than before.