Merge pull request #1 from cloudify-cosmo/devel

Saltstack plugin - beta version
CFY-1786 Context validation: fix bugs, refactor

- 'show_auth' required type should be bool, not basestring
- old code crashed if the key had a wrong type and 'Types'
  wansn't an iterable
- rewritten exception-throwing code to be shorter
CFY-1736 Authorize minion using salt wheels

Authorization is done by generating preaccepted keys on Salt master
and copying them to minion configuration.
CFY-1758 Refacoring

- 'utility' subdir was renamed to 'scripts'
- a new 'utils' module was created; context validation, api manager
  handling and several common functions were moved there
Reuse one token instead of logging in to Salt API several times

SaltRESTManager.log_in was split into two methods to allow creating
a session using existing token.

Token is no longer checked for being valid when logging out. We
were occasionally experiencing a very strange problem: the token
received from Salt API had its start date set to about 1 minute
in the future from the moment of creation.  Strangely, Salt API
accepted this token even before its reported start date, but our
sanity check was catching that situation, so we turned it off.
We also ensured that log_out method will return valid values in
such situations.