Some cleanup and fix for paths with spaces in their names

Removed all *~ files and added a .gitignore file.
Backported the space in path name fixes from QtCreatorSourceCodeAccess plugin.