Cyclomatic complexity rule

This is a tentative pull request for issue #124 about calculating cyclomatic complexity.

It introduces the base rule script that reacts to functions and counts the complexity within them.
It comes with a test script too.

Not sure how much time I can devote to this right now, but this is a first draft and I'd love to hear your comments.

Thanks