Add custom io handler

Add an extra function with a custom io handler for write in a custom output like http or memory.
Add support for cmake build tool.