improved error handling, sanitizing input for registerDevice
added createCampaign and assignTag