Updated dependencies to non-private APIs

These classes used private APIs in junit or Sun's old reflection packages. They've been updated to depend on the new APIs now.
Updated gitignore