Move the IPv4 pattern stuff into its own module and begin a real test suite.