Updated .gitignore

- Updated the .gitignore to cover more things
- Removed old http config variables
- Overrides hashCode() and equals() to compare only certain things
- replaceSingleton() method works.