Clean up the subscriptions template file a bit and add some missing checks.
Convert UCP subscriptions module.