support for keyword arguments in PyQuery custom functions (PyQuery.fn); hook tests

Keyword args support in custom fn.
Hook tests (new TestCase), including a test for kwargs from this commit.