Move g.text to shapes module.
Move code to subfolders.

This makes the distinction between utility functions, objects and
commands clear.