katello-cli, katello - setting default environment for user

- add default {organization|environment} in user {info|list}
- add default {organization|environment} options in user {create|update}
- refaktors setting of default_environment, moved form controller into
  model
white-space formatting
removes forgotten TODOs
767925 - search packages command in CLI/API

Usage:

    katello package search --product Product --repo Repo --query 'package*'

API:

    GET /repositories/:repo_id/packages/search?search=:search_query

As in UI, it's using Elasticsearch on backend.
cli - refactors long if into method

adds method Action#require_at_least_one_of_options
Merge branch 'master' into add_default_org_and_environment_of_user_to_cli

* master: (8 commits)
  reverted katello.yml back to katello master version
  ...

Conflicts:
	src/app/controllers/users_controller.rb
Merge pull request #22 from pitr-ch/add_default_org_and_environment_of_user_to_cli

Add default org and environment for user to cli
Automatic commit of package [katello] release [0.2.32-1].
Automatic commit of package [katello-cli] release [0.2.31-1].
Automatic commit of package [katello-cli-tests] release [0.2.13-1].
Merge pull request #23 from iNecas/bz767925

767925 - search packages command in CLI/API
cleaning up use of AppConfig.katello?
Merge pull request #29 from thomasmckay/headpin-cleanup

cleaning up use of AppConfig.katello?
The headpin cli should deliver its own etc file
Merge pull request #30 from bkearney/headpin-cli

The headpin cli should deliver its own etc file
Loading group roles from ldap

Adding is_in_group for ldap support

cleaning up some groupadd methods/

Adding role -> ldap group relationship

Fixed type of the role_id column

Added API calls for adding and removing LDAP groups from roles

Added listing of role's ldap groups

Save LDAP roles on user login

Add ldap flag on to role

Validating user /ldap groups are the same on each request. we cant cache any authorization details. needs testing

refactor ldap lib

Management of LDAP groups in CLI

Keep hidden_user set when defined

Refactoring of ldap groups evaluation

Fixed issues with loosing the ldap flag in role on various accasion

Adding ADD LDAP groups to roles sliding tree

Adding REMOVE functionality to roles / ldap group sliding tree

Adding ldap_roles flag to breadcrumb render

Added params to installer to setup LDAP during install

--auth_method = database
--ldap_server = localhost
--ldap_encryption =
--ldap_basedn = ou=People,dc=company,dc=com
--ldap_groups_basedn = ou=Groups,dc=company,dc=com
--ldap_roles = false

Refactoring the login logic for ldap roles, moving ldap flag on role creation to roles_users

Updated help string in remove_ldap_group command

Fixed wrong method in the migration script

Fixed syntax problem in migration

Fixed verification of ldap roles

Moving verify_ldap_roles from allow_to? to the application controller. Allowed to does not do what I think it does!

Added LDAP roles verification in API controller

Fixed clearing of existing LDAP roles

Rfresh ldap roles with every API call

Support for multiple ldap roles with same group

Fixed behavior of is_in_group when no groups are set

- is_in_group returns true on empty group list
- raises error when group_base is not set

Added syncing of ldap roles before rendering the roles list

Syncing of ldap roles is triggered after ldap group manipulation

API call for syncing ldap roles for all users

Revert set_ldap_roles back to verify only (for performance reasons)

Adding specs for ldap logic in user
Fixing various LDAP issues from the last pull request

Added permission check for sync_ldap_roles

Fixed issue with Ldap mixing in

Added sync_ldap_roles to CLI

Ldap module refactoring

Fixing specs for module -> class refactor