r25: Added API for registration. This commit refs #3 @4h