Added delivering static files. Fixed bugs.