Improve ignore files

New PR for https://github.com/joomla/joomla-cms/pull/1472 that improve the `.gitignore` file but is out of sync and against master

And tested by @Hackwar see https://github.com/joomla/joomla-cms/pull/1472#issuecomment-34482392