make exception for static files of 404
seperate views and apis; fix mysql connection broken
use angularjs
fix