Updated code to use HTML5 attributes for language locales. Renamed some folders. Organized the translations.js code for readability.
Added protocol detection, which modifies the login page accordingly for either online or local file system mode.