Pull request for #18: Change the registration order of the multi-tenant filter

Using the changes from this pull request, the tenant filter's position is affected by the `multiTenant.resolveTenantBeforeLogin` config property. Setting it to `true` results in the filter being registered before Spring Security's form login filter.