mkdir a new lib dir for modules.

api/fakeopenstack.py -> lib/fakeopenstack.py and lib/utils.py
the csrf_token and csrf_protected in */view.py have been moved to lib/utils.py
to reduce the unnecessary codes.