basic api skeleton in place

open, close, getids