Add 'function annotations' mode to support function dependencies

Here's the proposed implementation for issue #24.