add a handler to handler 500 error.
update codes.
update example codes, added an administrator authenticate.
Update templates and static files.