Pixmap borders: Redraw border on ConfigureNotify

That's needed, for example, when a floating client resizes itself.
... Minor code style nitpicking ...
Pixmap borders: Move state autodetection to setborder()
Pixmap border: Handle failing malloc()