Remove dependency

Remove dependency on wordwrap, which seems no longer in development. (Last commit was a year ago)
Replace it with an internal simplified version of wordwrap without breaking tests.