Plugin doctests coverage + bugfix

Adding more doctests, and a few extra unittests. Fixed a bug where pynag would crash in a wrong way, I think, if PluginHelper.parse_arguments() hadn't been called.

Also added support for arguments in PluginHelper.run_function()