Added javadoc / minor refactoring of TextUtils class

The constructor now takes the CommonGame instance. No point in handing that
into each method that this class will have in the future.