Initial commit based on gpaw svn 10713