Imported code from subversion repository. Wrote new Jamroot to compile with tests.