Fix for #50

Fix for opening multiple channels for the same connection. Instead of freeing channel IDs, we mark them as used.