core: Fix syntax errors on postgres
Pick 2.5.1.1 release notes
Fake staticpages initial migration only for 2.5.0

staticpages was added as legalpages in 2.5.0, so for older releases it
is necessary to run all the staticpages migrations, but for 2.5.0 the
initial migration needs to be faked.

This allows to directly upgrade without problems from releases older than
2.5.0.
Make setup command code sligthly more readable
Docs: Record upgrade fix in release notes
Docs: Update detailed upgrade instructions
Minor cleanups
Cleanup: Remove unnecessary CSS styles
Cleanup: Remove unused CSS
export: Always compare offset-aware datetimes

Thanks Toni Hermoso Pulido for reporting the issue

http://sourceforge.net/p/translate/mailman/message/32300565/
Cleanup: Remove unused TreeItem methods

Asked Taras about these methods and told that they are unused and that
were added for future potential optimisation that didn't happen.
tests: Initial tests for stats
tests: Unmark a valid test
Cleanup: Remove more unused TreeItem methods

Asked Taras about these methods and told that they are unused and that
were added for future potential optimisation that didn't happen.

Followup for 63199a71.
Cleanup: Remove unused view
Bugfix: Display all failing checks in editor dropdown

This is because of 8a0718d0, that is necessary because in the stats
we only need critical checks, but in the editor dropdown we need all
the checks, including cosmetic and functional. This was no problem
for Evernote because they only have critical checks.

This is a dirty hack that needs to be partially undone in a future not
yet created followup commit that detaches get_error_unit_count() from
get_checks(). See the TODO note.
Random cleanups
Recover UI: Allow to filter by goal using dropdown
Recover UI: Only display the goals dropdown if the TP has goals
Recover UI: Send to right URL when blanking dropdown in goal drilldown

Before this when blanking the language or the project dropdown in a
goal drilldown forwarded the browser to broken URLs.