Remove async ajax calls.

Fixes bug 504. (https://bugs.linaro.org/show_bug.cgi?id=504)

Change-Id: I3c2638a71af0a5cf0047ca220c0bdd8cb38d9d7f
Reorganize chart headers and result table in image reports.

Fixes bug 327 (https://bugs.linaro.org/show_bug.cgi?id=327)
Fixes bug 367 (https://bugs.linaro.org/show_bug.cgi?id=367)

Change-Id: I88a22de6a1863eea02d1e4c6a1aa894818d0e063
Fix bug #388 - staging-kvm08 device is in running status while the job ..

See https://bugs.linaro.org/show_bug.cgi?id=388

Database transactions for state transitions and elsewhere should be committed
 with proper retries.

Change-Id: I0c86a8112557f51be7196cc1630eef3774483181
Merge branch 'master' into staging