CleanupAction: Prevent data corruption if query times out.

Sometimes the mysql server can be done, disconnected, rebooting,
overloaded, timing out, whatever it may be.
In that case it should not do the second query, as it depends on
the first.

Also, including the row ID in exception message in JobAction.
Some jobs have 100s of run results, knowing which one is corrupt
helps a lot.

A transaction (BEGIN; COMMIT;) could be a better solution in the
future.
libs/ua-parser: Update to latest upstream master.

Fixes several minor bugs. Fully backwards compatible.
Update README: Copy edit, spacing, spelling.
Issue #251: Remove trailing slash from swarmpath() call.

The default htaccess settings undo trailing slashes. Although
linking to a url with a trailing slash doesn't cause an infinite
redirect (a regular redirect), all generated links should be
canonical (no redirects).

Fixes all 1 matche(s) from:
> ack 'swarmpath\(\s*".*/"\s\)' -a
Inject: Remove jQuery-specific code. Fixes #197.
Do not strip trailing slash from the root path under nginx.
Updating to latest ua-parser