Merge pull request #977 from tgriesser/debugging

Adding when/monitor/console
Updated to latest version of express-hbs

issue #830
Refactored tests

Fixes #362

- There is no need to set the viewport on functional tests anymore
unless something other
than the default of 1280x1024 is desired.
- There is no need to invoke `casper.run` to trigger `test.done`
anymore for functional tests.
- Each test works independently of the rest; registration is handled
once for the lifetime of the test run and then login/logout can be
invoked automatically as desired.
- Mocha tests all utilize predefined, more realistic fixtures when
appropriate.
- Renamed old api tests that were really model tests as appropraite.
- Added example api test for posts.
Merge pull request #983 from gotdibbs/Issue362

Refactored tests
Revert "loading bar implementation"

This reverts commit de6b8ee9b3a8c3ed4f8d78ec972c459eecf7bb76 and 16742bcaef58b37649865b68b5463770a4fa8b12
Added in functionality for a working loading bar
Fix for unhandled promise on fresh db startup

issue #977

- As of the addition of when/monitor/console we now get errors about unhandled promises
- This fixes one which appeared when starting up without a DB
Merge pull request #984 from matthojo/Loading-Bar

Loading bar
Escaping several fields to prevent XSS

issue #938
- escapes post's title field
- escapes settings title, description, email
- escapes user's name field
- includes test for post title
Swapping escape to sanitze

issue #938

- rather than using escape, use node-validatiors santize function which is designed for preventing xss vectors
- added listener for changes to both editor and settings page
- added more sanitization to the user model
- consistently use triple-braces when outputting blog post titles
Updating to latest Casper

- triple braces for post titles everywhere
Merge pull request #925 from matthojo/New-line

Added new paragraph keyboard shortcut
Improving tag handling in post_class and body_class

closes #967, closes #987

- use slug instead of name (it's unique)
- get tags even if we aren't inside the post context
- add tag handling to body_class too
Fix filepaths for config and upload

no issue
- added appRoot to config-loader.js
- modified uploader to use correct path
- modified tests
Merge pull request #998 from sebgie/config-file-path

Fix filepaths for config
Merge pull request #995 from ErisDS/xss

XSS
Merge pull request #996 from ErisDS/0.3.2-tagfixes

Improving tag handling in post_class and body_class
SCSS is now compressed on build
Merge pull request #922 from matthojo/SASS-Compress
Allow Ghost to run using sockets

Closes #887
- Adds getSocket function > Returns the socket location if sockets are enabled or false
- Adds startGhost function > Callback for server.listen