Handle functions

@financeCoding This should finish off https://github.com/dart-gde/chrome_gen.dart/issues/24.