[#140] Separate modal controller into separate file

Resolves issues with dependency injection; ngmin does not properly resolve
controller dependencies when they are embedded within code.
Merge branch 'hotfix/140'

Fixes #140