Improved network buffer trie management

All management of each network's trie of buffers is now handled by
new_buffer() and destroy_buffer(), instead of the network_tree functions