Changed lib class file to use app lang
Edit 404 page
Added the template system front end
Update sql
Added static page