Merge branch 'master', remote branch 'upstream/master'
Merge remote branch 'upstream/master'
Better shutdown handling - this closes #24.

The way cylc determines when a suite should shut down is now clearly
laid out in one place. Normal shutdown is no longer determined by
whether or not "all tasks are finished or held" - now the status of each
tasks is checked with respect to the relevant shutdown criterion.
The motivation to finally get this done was that the old cruft-ridden
shutdown code caused a problem with the new restart implementation (no
automatic release of held tasks etc.): if a suite was shut down with no
runahead-limited tasks, just succeeded and held ones, it could not be
restarted as all resurrected tasks were "finished or held" resulting
in an immediate shutdown.
Merge remote branch 'upstream/master'
Merge branch 'master' into 24-better-suite-shutdown

Conflicts:
	lib/cylc/scheduler.py
hotfix for retry not firing off.
Merge pull request #224 from arjclark/retry-hotfix

Retry hotfix
This completes the changes required for #221.

Adjusts for the fact that the old task.is_waiting() test used to return
True for retrying tasks as well as ones in the 'waiting' state. Now we
do direct tests on the state value, so must check for 'retrying' too
where appropriate.
Warn if internal queue members are not used in the graph.

This closes #214.
Closes #44: disallow declaring families to be sequential.
Deleted obsolete comment.
Fixed a trivial typo that only affected task locking.

The cylc lockserver is currently only used at NIWA.
Trivial doc typo fix.
Minor documentation change.
Added www links to the doc index.
Added .tex sources as deps in doc Makefile.

This allows re-make after changes to the source, without deleting the
generated documents.
Merge pull request #228 from hjoliver/doc-makefile-deps

Added .tex sources as deps in doc Makefile.
Merge pull request #225 from hjoliver/221-follow-up

This completes the changes required for #221.
Merge branch 'master' into final-config-changes
Merge pull request #227 from hjoliver/44-sequential-families

Closes #44: disallow declaring families to be sequential.