Fix #896 - work around errors in pagination under Postgresql.
Fix style issue on user-image on Firefox and Opera

On both Firefox and Opera (OSX) the user image badge in
the settings page wasn't displayed.
Also, on firefox the badge overlay didn't have the proper size.

I don't know if there's a specific use case requiring a `display:
table` instead of a plain `display: block` but that was failing on
Firefox and Opera.

Using a block instead seems works perfectly (at least on Opera, Chrome,
Safari, Safari Mobile IOS7 and Firefox) regarding the badge size issue.

On Opera, though, the border radius wasn't applied properly to the
image. Adding a `border-radius: 100%;`fix that.
Add featured class when post is featured

fixes #1112
Save all settings when the logo or cover save button is clicked.

Fixes #1017.
- Call saveSettings for cover and blog logo photos
- Call saveUser for profile and profile cover photos
Posts can now be featured by clicking on the star icon

fixes #1111
Fixed intermittent test errors

Fixes #1124

- Updated default mocha timeout to 15 seconds. Any future tests that
depend on a timeout (and thus might be better off with a lower value)
can override the default setting which is now 15 seconds.
- Removed test-specific timeout overrides for the mocha tests.
- Fixed the editor/splitbutton tests to wait for the appropriate
selector instead of assuming the dom has been updated immediately.
Should resolve intermittent timeouts when checking the splitbutton's
applied classes.
Improved test coverage of theme helpers.

refs #246
Set correct HTTP status code on error

closes #1055
Fix CSRF deprecated warning
fixed bug where an undefined variable could be dereferenced

which could cause the server to choke.
Merge pull request #1088 from jacobian/postgres-fix

Fix #896 - work around errors in pagination under Postgresql.
Merge pull request #1133 from gotdibbs/Issue1124

Fixed intermittent test errors
Merge pull request #1051 from nason/settingsResetOnImageUpload

Fixes #1017. Save all settings when the logo or cover is saved
Merge pull request #1117 from halfdan/featured-posts

Add featured class when post is featured
Merge pull request #1119 from halfdan/featured-post-button

Posts can now be featured by clicking on the star icon
Merge pull request #1121 from abe33/fix_user_image_border_in_settings

Fix style issue on user-image on Firefox and Opera
Merge pull request #1141 from halfdan/246-helper-tests

Improved test coverage of theme helpers.
Merge pull request #1152 from jgillich/status-code

Set correct HTTP status code on error
Merge pull request #1226 from halfdan/csrf-token

Fix CSRF propery deprecated warning
Use less markup for links