Reorganize .gitignore for v1 and contentqa engines

Including lines to ignore local-only rails_config files. Moving engine
specific ignores to the engine's directory tree.