Small amendments to the registration method

AppEngine part changed as well to handle Id changes and
prevent multiple registrations with the same Id

Signed-off-by: Gergely Szell (sethyx) <szell@hu.ibm.com>