Moved code to the gnuob-api project.