Merge pull request #25 from diascreative/pullme

Update fog & delete cache dirs on deploy
Force type information into every select

So any entries that no longer matches a known type will be
automatically excluded from the content.

Fixes #23
Remove any existing cache dir during deploy
Change fog dependency description to keep it more up-to-date
Throw an error if a type or box has been deleted

Fixes #22
Clean up content table after schema modifications

If a box or type has been removed then remove any content instances affected by this and deal with any orphans this leaves.

If content is deleted during this process then force the next publish to include all changes so the live state can be properly synced.
Include a console task to run the db cleanup and call it after every deploy

This should fix any invalid content in the production db after deploying a new revision with schema deletions.
Merge branch 'master' of github.com:SpontaneousCMS/spontaneous
Give a warning about the consequences of removing types & box types

Plus some feedback about the results in the console
Ensure that PagePiece#target == PagePiece

Fixes #24
Remove :text as a name for markdown fields

Fixes #19
Make :text refer to a long string field

As well as :longstring & :long_string. Plus add some actual tests for this field
Enable passing of locals within templates

The #render call is not immediate within the context, it's "object resolution" then "render" so to pass params to a render requires explicit use of #render i.e. ${ image.large.render(width: 54) } not ${ image.large(width: 54) }

To avoid this wrap the context targets in a Renderable object that provides a persistent wrapping of all objects that respond to #render and persists the parameters from the template into the subsequent #render call.
Check for ability to clear fields
Test for existence of prototype before checking for :attachment setting
Use new :richtext field type
Fix whitespace & re-order quotes to help editor
Merge remote-tracking branch 'upstream/master'
Clean up & document the Renderable class
Merge remote-tracking branch 'upstream/master'