{{action}} will target a template's controller

If a function whose name matches an an action is implemented on
a template's controller, that method will be called instead of
delegating the action to the application's current state.

Not sure why a check of `hasOwnProperty` was used, but
it prevented this new behavior from occurring.

@tomdale and I discussed this briefly last night.