Merge pull request #1 from cylc/master

Update my copy of the repo
Removed the -d option for get-config.

It was pretty much useless since removing the unnecessary ability to
configure task log directories individually.
Moved some suite config to site config.
Merge branch 'master' of git://github.com/cylc/cylc
Better dynamic host selection.
Clearer documentation of site/user [task hosts] section.
Merge branch 'master' into final-config-changes

Conflicts:
	bin/cylc
	conf/siterc/cfgspec
	lib/cylc/global_config.py
Final documentation update.
Merge remote branch 'origin'
Send environment variables as arguments

When using ssh remote messaging with Cylc it sends information about
what suite a message belongs to with environement variables. These
variables have been sent using a bash wrapper around 'cylc message' and
similar.

For security reasons some HPC sites may wish to restrict what commands
may be run by unattended ssh connections. This patch is the first step
in allowing the bash wrapper to be removed if desired, so that remote
commands may be limited to 'started', 'finished' or 'error'.

Environment variables may now be passed to cylc like

    cylc --env=NAME=value

Arguments matching this pattern are parsed by the Cylc driver, turned
into environment variables and removed from the argument list before
starting a subprogram.

Remote messages now use this pattern to send environment variables,
rather than adding them to the wrapper script.

Also included is a refactoring of the remote command invocation, to
ensure that the verbose mode output matches the command that is called.
Use a bash login shell for the remote command

Adding the --login flag to bash automatically sources the profile files
for the remote machine, avoiding the need for checking for them in the
ssh command.

Whether or not to use a login shell is now enabled by a boolean within
execute(), which will be changed to a config file setting.
Add login shell option for remote tasks

Add a new suite.rc option:

    [runtime]->[[_NAME_]]->[[[remote]]]->use login shell

Enabling this option results in remote commands being run in a login
shell, so that a user's ~/.profile settings are sourced. It defaults to
True.

Disabling this setting may be useful for facilities that wish to limit
the creation of unattended login shells for security reasons.

With the option enabled remote commands look like

    ssh user@host "bash --login cylc function"

with it disabled they look like

    ssh user@host "cylc function"

Also provided is the command line options --login and --no-login, which
enable & disable this functionality respectively from the command line.
Expand the 'use login shell' documentation

Adds a description of what profile files are sourced by the shell for
each mode.
Merge branch 'master' into final-config-changes
Merge branch 'master' into final-config-changes

Conflicts:
	doc/suiterc.tex
	lib/cylc/scheduler.py
Merge branch 'master' into final-config-changes
Merge branch 'master' into final-config-changes

Conflicts:
	doc/suiterc.tex
Default to local host settings.
Fix to pass test battery.
Merge branch 'master' into final-config-changes

Conflicts:
	lib/cylc/task_types/task.py