move test dependencies to tests only

Main (non-test) Factorie depended on junit, which can be an issue for teams using a different version of junit as well as Factorie. Fixed by changing AssertStringEquals, AssertEquals to asserts (and wrote an AssertDoubleEquals that takes a delta). Also formatted pom.xml.