Copy the buffer instead of assigning buffer.
Switched to tag parse testing

[conf]
- parse output channel correctly

[forward]
- only set poll events when there is a channel
- added extra debugging

[tlv]
- added extra debugging

[portall.conf]
- switched to tag parse testing
Merge branch 'master' of https://github.com/blikjeham/portall

Conflicts:
	tlv.c
Merge pull request #3 from sjoerdjob/pbuffer_grow_clear_out_of_bounds

Do not write beyond the bounds of the buffer.
Fixed pointer to data after debugging

[logging]
- fixed pointer to data after debugging

[forward, tlv]
- removed extra debugging

[pbuffer]
- added debugging functions