Logging

@minimul Added the ability to do wiredump logging to help debug interacting with the API.