Fixes and enhancements after gdb debugging

- Fixed several memory problems related to my noob understanding
- Added build artifacts to .gitginore
- Added pcap_close()
- Extended pcap_test.php
- Cleaned up (and probably created more mess)
- Added vagrant environment and chef provisioning