[resolves #23] Allow handler definition to contain private function

@carystanley @redonkulus