LWR changes not directly related to parameter rewriting.
Fix small bug related to from_work_dir location checking...

... would only be exhibited if using LWR + RemoteMetadata.
PEP-8 fixes for local job runner.
Adjust GALAXY_SLOTS in local.py for pre-bash shells.
PEP-8 fixes for jobs/__init__.py
PEP-8 fixes task runner.
PEP-8 fixes for set_metadata.py.
Refactor small __poll helper method out of local job runner's queue.
Local job runner - only poll if limits set (so can be set).

Small optimization.
Allow setting metadata as part of local job.

Any idea why this isn't the default when it is for other runners?
Rework local job runner to create job script.
Reduce code duplication between JobWrapper and TaskWrapper.
TaskWrapper - utilize user_template_environment like JobWrapper.
Reduce code duplication between JobWrapper and TaskWrapper.

Create shared method for building up param dict.
Rework logic in tools related to false paths.

Basically, if a false path is set trust it, don't explicitly check app.config.outputs_to_working_directory. The hope here is that this logic can then be used in other scenarios where a false_path might be setup at the layers (e.g. job_runner) above tool.
Eliminate output path rewriting in TaskWrapper.

Rework task splitting to rewrite paths before cheetah evalulation not after.

Utilizing DatasetPath.false_path mechanisms implemented for config.outputs_to_working_directory. I think this could be made less convoluted if the combination of outputs_to_working_directory and Task splitting were optimized in some way - but this changeset keeps the behavior of that the same (copying twice) just to isolate changes to how these paths are evaluated in Cheetah.
Reorganize tool dataset wrapper instantiation for future extension.

This changeset should change how anything functions, but will make subsequent changes less dramatic.
Refactor DatasetPath out into newer galaxy.jobs.datasets module.

Add unit test for DatasetPath class.
Eliminate input (hence all) path rewriting in TaskWrapper.

Extend concept of false paths to apply to inputs as well, use the rewrites implemented in TaskPathRewriter.
Refactor JobRunner's in_directory out into galaxy.util for reuse.