1. Updated npm packages in package.json to their latest versions.
2. Massive changes to make the code comply with our coding standards, e.g. fixed the indentation to be consistent across all files (4 spaces).