Changes to endpoint
Log_packet fix
Only call check_for_pruning whenever we have a message that can be
pruned
Broke endpoint packet sendqueue
Merge pull request #242 from NielsZeilemaker/optimize_pruning

Only call check_for_pruning whenever we have a message that can be
Merge pull request #240 from NielsZeilemaker/improve_endpoint

Changes to endpoint