Xproperty preserving

This is an initial implementation for preserving the timer value in the X resource database. Based on the proposal from @blueyed in #8