Fix error messages not being shown in the registration form

For some reason the `resource` gets in the view as nil when the page is loaded
via registrations#new. Had fixed this in be47d4f83a665, but then the errors
when a registration failed where not being shown anymore. Happened because
the form was always creating a new user always and not keeping the one
submitted to registrations#create.
Fix permissions for webconf invitations

Was blocking non-admins from sending invitations. Now users can send invitations
in their personal room or in rooms that belongs to spaces they are members of.

refs #1179
Always fall back to local authentication if LDAP fails

Some errors in the authentication via LDAP were still forcing an error that
made the authentication stop, not falling back to the local authentication.
Now all possible errors will fail only the LDAP strategy, always falling back
to the local authentication. All errors are also logged.

refs #1055
Merge remote-tracking branch 'upstream/branch-v2' into branch-v2