Support of autofocus in a modal

The directive does not work when a form is loaded in a modal. It can be solved by wrapping the `focus()` call in the `$timeout` service. See http://plnkr.co/edit/NTSKnADit8nHhX4BSsTp?p=preview