fixed configuration update handling and properly removed servlet registration on shutdown

Signed-off-by: Kai Kreuzer <kai@openhab.org> (github: @kaikreuzer)