WIP use xdbus_connection_is_valid() everywhere
WIP whitespace
WIP refactoring
WIP formatting & documentation