Register mockup.

Register GET/POST template; fixed some framework's bug