Refactor and merge apps/topology to trema.
Add features test for topology C API