Merge pull request #1 from RexOps/master

pull to nathanIL master
Fixing a typo in the getops & releasing shared memory segments

In Default.pm, a wrong key was used, 'c' with the %opts to check for
Output.

In addition, seems like after running several executions with the JUnit,
looking at 'ipcs' some shared memory and semaphore arrays were not being
released back to the system.
Implement feature to tie server.ini to specified -E environment (server.$environment.ini).
fixed bug when using rex as a library and using sudo - #414
Merge pull request #413 from ehuelsmann/feature/server-environment-ini

Feature/server environment ini
Merge pull request #2 from RexOps/master

sync over master branch
Doc additions based on explanations from IRC.
#409 - added before_task_start and after_task_finished hooks
#409 - first parameter is task object
Merge branch 'issue/409_2'
fixed for compatibility with perl <= 5.12
[#408] - define fallback authentication
Merge branch 'pr/411'
Merge pull request #415 from ehuelsmann/docs/additions-20140823

Docs/additions 20140823
[#416] - fixed pkg with ensure => 'ver.si.on'
fixed sudo is_file functions
perltidy
added -Ty for yaml output and fixed a bug when using openssh connection method with exec and $_ somewhere
fixed openssh and multi auth
fixed for path with spaces and yaml output