Add ./legacy and ./mobile folders to .gitignore. [ci skip]