Add address_type column to quark_ip_addresses

I think you could have masked this with "declared_attr" or something like it (I forget the sqlalchemy term) and then you wouldn't have had to do the .get everywhere, but this is fine for now