added ifdef DEBUG around the NSAssert() calls in TSNetworking.m