small changes: refactor loading of files, fix --no-css, turn warning into error

Review URL: https://chromiumcodereview.appspot.com//13864013