Fixes detwilify, moves util tests to isolated file
Match up detwilify with twilify
Removes duplication and simplifies twilify/detwilify
Merge pull request #111 from philnash/simplify-utils

Simplify and test twilify and detwilify