refactored registration to work with new db model
refactored registration to work with new db model

lianke123321/centinel-server,lianke123321/centinel-server,rpanah/centinel-server,ben-jones/centinel-server,iclab/centinel-server,rpanah/centinel-server,rpanah/centinel-server,ben-jones/centinel-server,lianke123321/centinel-server,ben-jones/centinel-server,iclab/centinel-server,iclab/centinel-server