Add support for projection queries. Re-structure blockstem api package.