restructured ssh-agent configuration

added checks if ssh-agent is running and if the corresponding
environment variables are set. if not ssh-agent will be started and the
environment variables will be set in /tmp/agen.env and then loaded into
the shell to use an existing agent.