Initial import from svn. Working version, tested against Amuse.