make authentication correctly respect ldap configuration

- ldap login was incorrectly driven based on presence of
  external_id for a user, and only after that was configuraton of
  ldap considered as a factor. Corrected this so that it will
  always use ldap when ldap is enabled, unless 'local' is set in the
  request.
- new query for correct lookup of user record by external auth id
- various minor modifications to ensure compatibility with
  opscode-manage.
temporary commit to use branch of chef_objects in build
Merge pull request #98 from opscode/mp/ldap_config_switchable

make authentication correctly respect ldap configuration
don't keep the testing branch of chef_objects in rebar.config
GET /organizations/:orgname/users was not returning #base_state

This request brings the code to oc_chef_wm_org_associations:to_json()
for which one path returned a #association_state{} instead of a
 #base_state{}. This causes chef_wm:finish_request() to fail to
pattern match, thus never executing finish_request()

This change makes sures it returns a #base_state{} instead.