Moved delete post confirm alert to new modal format
Casper tests for CodeMirror editor

There are still some issues surrounding spaces and new lines which will need to be worked out, but we can at least start to test some of the markdown.
Merge pull request #336 from matthojo/Delete-modals

Moved delete post confirm alert to new modal format
Magnificent Migrations of Magical Majesty
Data model additions for post tags, custom data and uploads

closes #171, closes #314, closes #315

- added settings for blog logo and icon
- all other settings will need to be added as needed as it's impossible to guess what the default value should be
- added tables for post tags
- added tables for post custom data
- added location column to users
- fixeed minor bug in migrations
Data models import, export, and reset for 002

 - added line to index.js to set node_env to development if it is not set
 - fixed a small bug with the persistent notifications and used them on debug page from server side
 - added 002 files to manage export and import for 002
 - 002 import is somewhat smarter than 001, merging settings (except version), replacing user & clearing primary keys
 - added reset to models and migration, which does the down operation the same way that init does the up operation
 - import and reset clear session & redirect to login / signup
 - additional unit tests
Fixed persistent success notifications

Closes #333
* Refactored the Ghost.Notifications View bundle
* Added a new initialization of the NotificationCollection (hacky, but at least satisfies JSLint). This was needed as the reason the persistent success notification couldn't be dismissed was that prerendered DOM elements weren't picked up as BB Views beforehand, and thus no events were bound to them.
Persistent notifications should not fade out

issue #333
- css fix
Initial Plugin API Implementation

Implements basic functionality described in #227 for loading plugins
from a specific directory and having a specific workflow with an init()
method and a disable() method.
Editable user profiles in settings screen

closes #276

 - settings screen now loads a model when a pane is requested, rather than when the whole screen is requested
 - added browse, read and edit methods and routes for users to the API
 - added user model & template to client and wired everything up.
 - provided default images for cover and profile picture
Merge pull request #337 from ErisDS/user-profiles

Editable user profiles in settings screen
Merge pull request #267 from jgable/pluginApi

Initial Plugin API Implementation
Added image upload reusable plugin

issue #40 and issue #280

- Adds uploader jquery plugin
- includes settings for enabling/disabling upload progress bar
- adds routing for image uploads
- adds directories by year and month based on upload date
- Implements plugin on settings - general pane
- Implements plugin on editor
- adjusted general tab to save uploaded image src

TODO:
- Add error handling
- Storing information on editor
- Add events
Users can change password

Closes #282
* Added a new route
* Added new methods
* Triple security!
* Passwords are actually changed
* Also added a change password button, because 'save' has too much baggage.

On security: checks whether you're logged in. Then checks whether your old password is actually the one that belongs to you (gets value from the email field for the email, see caveat no2). Checks the new passwords for === and length > 6 on client and server side as well. And THEN changes passwords.

Caveats:
* didn't add a test, as mocha fails spectacularly on my machine. SQLITE_CORRUPT: database disk image is malformed. Cute, huh?
* Because we don't have / I'm not aware of / could not find a "currentuser" variable, I need to get the email address of the user we want to change from the email field. Theoretically if they replace that with another user's email address, and supply their pw, they will change THEIR password instead of their own.
Minor update to notification frontend api

 - motivation was an error message on the settings screen
 - now requires slightly less code to add a notification
Fixing unused variables
Merge pull request #338 from cobbspur/upload-plugin

Added image upload reusable plugin
Merge pull request #339 from javorszky/iss282

Users can change password
Minor code cleanup, docs and other bits & pieces
Themes: Added truncation to hbs content helper

Fixes #256

- Developed and linked new module, downsize, for tag-safe truncation
- Altered existing content handler to accept options for truncation
- Added tests for handler

Using truncation:

{{content words=10}}
{{content characters=256}}