Edited pcap_test.py to accomodate unit tests, added test_pcap.py to perform unit tests on pcap. Also packets are now happily sent to front end in a json object.