Added IPv4 DB tests
Moved decoder code to its own file