Tcbranch comin in hot

lots of php changes to make the character sheet page work properly