Schema additions for apps.

fixes #2102
- Added app_settings, app_fields, app_fields_relations tables
Implements Models & Data API for Apps

closes #2138
- Adds new models for AppField and AppSetting
- Removed permitted attributes from App model (handled by base)
- Added reference from Post to AppFields
- Added fixture data to DataGenerator
- Added integration tests for Apps, AppSettings, AppFields
- Added import for Apps
- Added app_fields to default fixtures
Merge pull request #2250 from halfdan/2138-data-apps

Schema additions and model/data API for Apps
Add validation from schema.js

closes #1401
- added data/validation/index.js
- added generic validation for length
- added generic validation for nullable
- added validations object to schema.js for custom validation
- removed pyramid of doom from api/db.js
Remove useless regex for redirecting /ghost -> /ghost/
Fix Firefox <select> height issue

closes #1109
- Use moz-specific selector to make <select> elements use auto height
Respect subdirectory in authenticate middleware
Updated pageUrl helper to page_url

issue #2216
Fix importer adds the same tags to every post

fixes #2234
- updateTags used tags that were overwritten by an async operation
Update delete post button labels

Closes #2027
Update delete all content button labels

issue #2027
Custom Page Templates

fixes #1969

- creates new ./server/helpers/tempalte.js method
 which returns the correct view to use when rendering

- updates fronted controller to check if a custom page template
 exists and if so then uses that to render the static page

- adds additional class name to body_class helper when
 a custom page template is being rendered

- adds tests to address all new features
Update package.json for publishing to npm

address #2078

- removes private: true flag from package.json
- created .npmignore file and moved all of buildGlob
 file patterns into here, negating all patterns as
 the npmignore file defines what is to be excluded
 and not included.
- gruntfile now uses the inverse of the .npmignore file
 to define what files to include in a release
Fixes client side bio character counter.

closes #1432
Fixing config unit test for Windows
Cleaning up unused blocks
Change fallback from address to webmaster@[blog.url]

This change is needed because the previous default of the user's email
address is too often mismatched against the site domain, triggering spam filters.

Fixes #2145
- added `fromAddress()` to GhostMailer to handle this logic
- added unit tests to `mail_spec.js`
Renamed client-side admin url helper

fixes #2254

- includes test
/ghost/reset/* should not redirect to signin

fixes #2257
Cleanup naming & order in admin controller

no issue

 There seemed to be no convention or order to the functions in the admin controller, so I have:
 - organised them
 - reordered them
 - added a small doc-block
 - reordered some routes
 - updated tests accordingly