Initial migration from 'openplanets/wap'.