Refactoring Controller

	modified:   controller.py
	modified:   web.py
Exception handling

	modified:   controller.py
	modified:   logger.py
	modified:   main.py
Exception refactoring

	modified:   controller.py
	modified:   logger.py