Move get_path_encoding to io module
Move various utility methods to util module
Move view draw methods to draw module