Linkify function definitions

The function signatures are parsed with PEG.js generated parser.

As the side-effect, I had to "unify" function signatures, I also added some type definitions (not sure though, if they are correct). Though not quite visible, type signatures are added as link titles.