atom-reading refactoring part 2: refactor atom::read() into init_frombinary() and init_fromxml()

Still in the state of compiles-but-doesn't-run (or at least,
deliberately assert-dies on XML reading)