Add generic list and listitem views

Summary:
- Add generic list and listitem views
- Translate empty view messages
- Clean up behavior declarations
- Cleaner rendering for pagination
- Fix user list tab counts

Test Plan: not yet

Reviewers: aMoniker, shadowhand

Reviewed By: shadowhand

Differential Revision: https://phabricator.ushahidi.com/D431
Fix jshint error after merging D431
Ensure that base URL is only stripped from the start of the redirect, refs T309

Test Plan: ???

Reviewers: rjmackay

Reviewed By: rjmackay

Subscribers: srutto

Maniphest Tasks: T309

Differential Revision: https://phabricator.ushahidi.com/D450
hook up the delete form button

Summary: fixes T933

Test Plan: try creating and deleting forms, using the confirm/cancel buttons on the alertify dialog

Reviewers: rjmackay, vladimir, shadowhand

Reviewed By: shadowhand

Subscribers: srutto

Maniphest Tasks: T933

Differential Revision: https://phabricator.ushahidi.com/D446
special case for when theres only one promise, wrap args in an array

Summary: fixes T935

Test Plan: try creating a new form, immediately editing it, then adding the first field... then try adding more fields

Reviewers: rjmackay, vladimir, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T935

Differential Revision: https://phabricator.ushahidi.com/D451
Move published/draft/pending state out of 'permissions' (status)

Summary: move status selector to the main form, hide the form nav if theres only one section, fixes T934

Test Plan: try creating posts using forms that have one and more than one field, try creating posts with different statuses

Reviewers: rjmackay, vladimir, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T934

Differential Revision: https://phabricator.ushahidi.com/D447
choose form to use when creating post from message

Summary:
add popup list to choose form when creating posts from messages, fix alert, fixes T938

delinting

Test Plan: try creating posts from messages using different forms

Reviewers: rjmackay, vladimir, shadowhand

Reviewed By: shadowhand

Subscribers: srutto

Maniphest Tasks: T938

Differential Revision: https://phabricator.ushahidi.com/D454
Move Select box to left and style it as a checkbox

Summary: also fixes a SelectableListBehavior bug, fixes T936

Test Plan: Try checking/unchecking the users in `/settings/users` and performing actions on them individually and via the bulk dropdown. Try the bulk select/unselect all dropdown option.

Reviewers: rjmackay, vladimir, shadowhand

Reviewed By: shadowhand

Subscribers: srutto

Maniphest Tasks: T936

Differential Revision: https://phabricator.ushahidi.com/D452
Update tests and Base.yml to auto-approve the default client, fixes T943

Summary: See T904.

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

Reviewers: rjmackay, aMoniker

Reviewed By: aMoniker

Subscribers: vladimir, srutto

Maniphest Tasks: T943

Differential Revision: https://phabricator.ushahidi.com/D453
remove minion and miniond files, refs T235
use phinx mainline, update to 0.3.8
update composer deps
Purge web directory and everything HTML, refs T985

Summary:
- remove `web/`
- remove npm, bower, and bundle files
- reduce all exceptions to JSON
- purge HTML stuff (layouts, etc)

Test Plan:
```
bin/update
bin/behat --config application/tests/behat.yml -f progress
```

Reviewers: vladimir, aMoniker

Reviewed By: aMoniker

Subscribers: spaudanjo, srutto, rjmackay

Maniphest Tasks: T985

Differential Revision: https://phabricator.ushahidi.com/D457
Use admin/admin for testing, fixes T944

Summary: Keeps the same password "admin" after running tests. Reduces confusion.

Test Plan:
```
bin/behat --config application/tests/behat.yml -f progress
```

Reviewers: vladimir, aMoniker

Subscribers: rjmackay, srutto

Maniphest Tasks: T944

Differential Revision: https://phabricator.ushahidi.com/D463
Pretty up the exception output in dev mode, refs T1022

Summary: Applies the same options as Ushahidi_Formatter_JSON.

Test Plan: Trigger an exception of some kind. Unauthorized access is easy.

Reviewers: aMoniker, sheesh, vladimir

Reviewed By: vladimir

Subscribers: spaudanjo, rjmackay, srutto

Maniphest Tasks: T1022

Differential Revision: https://phabricator.ushahidi.com/D468
Finish comment for VerifyEntityLoaded
Add a root index endpoint, fixes T1021

Summary:
- allow REST controllers to bypass oauth check
- fix base API URL generation when no `$id` is given
- add "index" route

Test Plan: Go to `/api/v2` in your local install.

Reviewers: vladimir, sheesh, aMoniker

Reviewed By: aMoniker

Subscribers: spaudanjo, rjmackay, srutto

Maniphest Tasks: T1021

Differential Revision: https://phabricator.ushahidi.com/D469
Convert Config entity to use "id" instead of "@group", refs T849

Summary:
Previously, the Config entity used `@group` instead of using `id` as the identifier.
This was inconsistent and resulted in some odd hacks to work around the behavior.
Cleaned up by injecting the group as `id` in the repository and fixing relevant tests.

Test Plan:
```
bin/behat -c application/tests/behat.yml -f progress application/tests/features/api.acl.feature
bin/behat -c application/tests/behat.yml -f progress application/tests/features/api.config.feature
bin/phpspec run spec/Ushahidi/Entity/ConfigSpec.php
```

Reviewers: vladimir, sheesh, aMoniker

Reviewed By: aMoniker

Subscribers: spaudanjo, rjmackay, srutto

Maniphest Tasks: T849

Differential Revision: https://phabricator.ushahidi.com/D472
Don't assume all entities have an 'id' value

Summary:
- Provide a getId method on entity classes to return a unique id.
- Use this method in AuthorizerTrait

Test Plan: bin/behat

Reviewers: shadowhand

Differential Revision: https://phabricator.ushahidi.com/D448
Implement posts create use case

Summary:
- Make action_post_index_collection use usecase. Scaffold parser+validator
- Remove old code for saving posts
- Implement PostRepo->create()
- UpdatePostData -> PostData

Test Plan: ./bin/behat --config application/tests/behat.yml application/tests/features/api.posts.feature --tags=create

Reviewers: aMoniker, shadowhand, vladimir

Reviewed By: vladimir

Maniphest Tasks: T534

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