Basically complete tests for core.util

Currently the entire classfinder magic isn't tested, because
it's hard to test.
Add preliminary(!) support for bidirectional communication with i3bar

Novelty use only.