Updated .gitignore to Joomla 3.1, but kept old ignores to ensure backwards compatibility with previous Joomla versions.

New ignores can be verified at https://github.com/joomla/joomla-cms