Refactor classes into a file each.
Fix all the files for web.