Place FormController instance on MainController

The use of ng-if creates a child scope, so the form directive creates
the FormController on this scope. $parent is used explicitly to ensure
the FormController is on the correct scope.

Fixes #4