Registration endpoint

- serving registration request and return a signed token containing subject_id and device_id