Refactor code, add an exponential average mechanism for state transition, and make logging configurable.
Refactor code, add an exponential average mechanism for state transition, and make logging configurable.

MSch/opscode-pushy-server,MSch/opscode-pushy-server,chef/opscode-pushy-server,chef/opscode-pushy-server,chef/opscode-pushy-client,chef/opscode-pushy-client,chef/opscode-pushy-server,chef/opscode-pushy-client