Default formation lookup on application creation

When a developer creates an application, they shouldn't have to specify a formation.  If there is a single formation available (common) the app should use it.  If there are none or > 1, we should raise an error.  We can implement user preferences later.

Fixes #282