Element lifecycle

Added simple lifecycle callbacks to `Element` (client).