registration module

partial complete, only json integration left.