Validate data sources config params, fixes T326

Summary:
 - Add validation rules for smssync secret field
 - Support executing closures on the rules field
 - Support validators in the form scheme
 - Call `form.validate()` to validate form fields

Test Plan:
 - Go to messages/settings
 - Click configure on SMSSync data provder
 - Submit empty value for the secret
 - See required error message displayed around the secret field
 - Submit a value for the secret key and see pass

Reviewers: rjmackay, shadowhand

Reviewed By: shadowhand

Subscribers: srutto, lkamau

Maniphest Tasks: T326

Differential Revision: https://phabricator.ushahidi.com/D286
Add date from message when creating a post from it, fixes T253

Summary:
  - Added created value from message model when creating a post from a message

Test Plan:
  - Go to messages
  - Create a post from a message
  - Check post table to see `created` value from message populated in it.

Reviewers: rjmackay, shadowhand

Reviewed By: shadowhand

Subscribers: srutto, lkamau

Maniphest Tasks: T253

Differential Revision: https://phabricator.ushahidi.com/D290
Remove warning prompt when viewing a post from message list, Fixes T652

Summary:
  - Remove event `viewPost`
  - Remove call to `viewPost` function

Test Plan:
 - Click on `View Post` link from message list
 - See page load without an alert prompt

Reviewers: rjmackay, shadowhand

Reviewed By: shadowhand

Subscribers: srutto, lkamau

Maniphest Tasks: T652

Differential Revision: https://phabricator.ushahidi.com/D292
fix phpcs lint configuration, refs D285
Update ohanzee/database version, prevents kohana/database from being added by kohana/orm, refs T611
Change phpspec template to fit with current code
Switch to PSR-compatible version of shadowhand/email, refs T612

Summary:
- updates to latest email package with PSR support
- remove module reference

Test Plan:
```
composer install
```

Reviewers: eyedol, rjmackay

Reviewed By: rjmackay

Subscribers: srutto, bodacea, dkobia

Maniphest Tasks: T612

Differential Revision: https://phabricator.ushahidi.com/D282
Change to a 403 Exception

Summary: Change to a 403 Exception

Test Plan: bin/behat --config application/tests/behat.yml application/tests/features/api.tags.feature --format progress

Reviewers: lkamau, rjmackay

Reviewed By: rjmackay

Subscribers: rjmackay

Maniphest Tasks: T666, T182

Differential Revision: https://phabricator.ushahidi.com/D283
Make Gemfile more restrictive on compass/sass versions

Summary: Ref T672

Test Plan:
Run `bundle update`
Run `grunt compass`

Reviewers: shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T672

Differential Revision: https://phabricator.ushahidi.com/D300
fix no-js style screwing with everything, refs 61065fcc32f6ac38139f0cc587554a55524a40e1
actually just remove no-js entirely, refs 61065fcc32f6ac38139f0cc587554a55524a40e1
Allow access to Config API per-group

Summary:
- Adding tests for config access to specific groups
- Make Ushahidi_Authenticator work for resource assertions
- Use authenticator in Config API
- Add a2 rules for anonymous config access to features/map/site

Test Plan:
```
bin/behat -f progress -c application/tests/behat.yml application/tests/features/api.acl.feature
```

Reviewers: dkobia, eyedol, shadowhand

Reviewed By: shadowhand

Subscribers: srutto

Maniphest Tasks: T494

Differential Revision: https://phabricator.ushahidi.com/D244
Populate oauth_scopes table

Summary: Add migration to populate oauth scopes table

Test Plan:
- bin/phinx migrate -c application/phinx.php
- bin/phinx rollback -c application/phinx.php

Reviewers: eyedol, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T671

Differential Revision: https://phabricator.ushahidi.com/D299
Add i18next for ui translations

Summary:
- Add i18next
- Add handlebars helpers for translating strings
- Add translations for nav, pagination and footer.

Test Plan: None yet.

Reviewers: bodacea, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T497

Differential Revision: https://phabricator.ushahidi.com/D304
Update built css
Fix JShint build errors after landing i18next. Refs T497
Enable OGC relations in migrations, refs T235
Enable the creation of new custom forms, refs T440

Summary:
- add custom form modal for edit/create
- update api to ensure every form has one group
- sync form field edits with preview

Test Plan:
- enable `form_wizard` feature
- go to custom form screen, add a new form
- edit the form after it is created
- add a field, save the field, see it change

Reviewers: eyedol, rjmackay

Subscribers: bodacea, srutto

Maniphest Tasks: T440

Differential Revision: https://phabricator.ushahidi.com/D305
"type" is now optional, refs T440
Add default OAuth client and endpoint with migration, refs T613

Test Plan:
```
bin/phinx migrate -c application/phinx.php
bin/phinx rollback -c application/phinx.php
```

Reviewers: rjmackay, bodacea

Subscribers: eyedol, dkobia, srutto

Maniphest Tasks: T613

Differential Revision: https://phabricator.ushahidi.com/D306