Merge branch 'master' of https://github.com/Persata/braids
Moving to Model as a proper class and putting in file support
Someway to working file validation
Also model has a proper extend method now
File Mime Type Test - still needs to handle * though, but the basics work
Working file validation, but needs to spawn child file to enforce mime and extension matching
Started work on migrating the validation towards promises using bluebird - means that custom validation functions can use async code (e.g. check the DB for things, run child processes)
Basic promises
Getting there
Almost fully promisified
Added test SQLite Data Source
Promises working across all validation types (except Joi which is synchronous anyway)
Added file() support to validate file types against their supposed MIME types.
Added tests for file() support.
Moved sqlite to dev dependencies
Added model passing into the custom validation function
Changed errorMessages to be a string instead of complex array
Fix for #7 - Files marked as not required return errors on type if not uploaded
Fix for error string
Merge branch 'Promises'

Conflicts:
	index.coffee
	index.js