refactored app
Added 404 template.
Merge pull request #7 from phibangbui/baseapplication

refactored app