basic port TB Config module port to tbobject

ref #251
dumb String.replace() issue in tbobject
basic port modmailpro to tbobject