Added separate files for script/style, updated HTTP handling