Initial messy version of inx parser/dumper.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>