added theme updating

I just copied the plugin update code and then s/plugin/theme/
This *should* work, but still unsure how to test...