Add UDP forwarding on the loopback interface and update tests (closes #33)