Refactor read/write methods to topic

This way they can be shared by other import mechanisms (like the shell).
Enable upload from chart command