[1] separate presentation from logic into template files, and [2] with m...

Separate presentation from logic into template files, with multiple templates support. 

Add config.php file to specify which template to load.

Modify .gitignore file under /file which's pattern was not correct.