Remove use of deprecated private accessors; where possible, switched to publicly accessible methods, otherwise changed to using PrivateObject for the time being.
Also, added more paths to .gitignore.