Closure annotation fixes.

Forward declarations, type annotations, more descriptive comments.

R=calamity@chromium.org

Review URL: https://codereview.appspot.com/51020043