Use api.xively.com instead of api.cosm.com

api.cosm.com is obsolete and uses an invalid certificate. The cosm API keys are
still valid.
"geraete" is not an integer anymore but a string