Basic logging capabilities + some pep8 cleanup

* added ``msg`` functionality to Link. Thin wrapper around builtin Python logging module, configurable via link.config. 
* basic pep8 cleanup (whitespace, etc...)