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.
Fixed typos
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.
Correct spelling of GitHub

Signed-off-by: Jacques Marneweck <jacques@powertrip.co.za>
Bump express and express-hbs to latest versions

closes #875, issue #876, issue #830
Update package.json

Update grunt-contrib-watch
Merge pull request #1208 from jacques/master

Correct spelling of GitHub
Merge pull request #1199 from pborreli/typos

Fixed typos
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.