Views structure

* Define global variables in lib directory
* Update views structures with better template implement
* Add alert template
* Add Login/Register templates