Pass the application as parameter to module constructors

As Roboguice does.
This allows modules to access application-contexted resources when
necessary.

Note that Roboguice looks for a constructor taking a Context (not
an Application). Since we got the Application we could be more
specific here, but check for a Context for compatibility with
Roboguice.