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
Simplify publish date checks

Fixes #814

- Changed to compare instances of `moment` using it's built in
comparison function instead of string compare with the date from the
database.
- Ensure compared date is parsed with the correct formats that we were
supporting before #1107.
- Moved date formats to variables to reduce chance for error in future.
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
add a `target` arg to `grunt test-functional`

The idea here is to slightly speed up test development by allowing you
to specify a single test file to run.
Keep the status code generate by connect in case of error.

The status code generate by connect/express in case of error was always
replace by 500 status.
Update package.json

Update grunt-contrib-watch
Allow themes to provide custom error template.

fixes #1212, #1213
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