Hide placeholder images unless media uploads feature is enabled

Summary:
Refs T79
Refs T161

Test Plan:
Go to post listing - no images
Go to post detail - no images
Enable media upload feature
Go to post listing - see images
Go to post detail - see images

Note this creates some UI issues when images are missing. These needs resolving
since not all posts have images anyway.

Reviewers: seth, dkobia, shadowhand

Reviewed By: shadowhand

Subscribers: srutto

Maniphest Tasks: T79, T161

Differential Revision: https://phabricator.ushahidi.com/D206
Fix unpublished posts link in workspace menu. Fixes T430

Summary: Status should be draft not unpublished

Test Plan: Open workspace menu, click 'Unpublished' and see that post list updates as expected

Reviewers: eyedol, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T430

Differential Revision: https://phabricator.ushahidi.com/D205
Make bin/update work with local composer.phar, add "deploy" option, fixes T442
Move "stats" scope from all to required, fixes T429
Allow wildcard search on the sender (contact) for messages

Summary: Allow searching for messages by contact

Test Plan: Login on Workspace, click "All Messages" and on search type an email e.g ''somejunkemail@vs.ushahidi.com

Reviewers: eyedol, dkobia

Reviewed By: dkobia

Subscribers: shadowhand, rjmackay, srutto

Maniphest Tasks: T240

Differential Revision: https://phabricator.ushahidi.com/D199
Catch negative 'offset' params passed to the API and return 400 error

Summary: This avoids an SQL error for a negative offset.

Test Plan: Pass a negative offset to posts API. See a 400 error, not 500 as before

Reviewers: eyedol, shadowhand

Reviewed By: shadowhand

Differential Revision: https://phabricator.ushahidi.com/D208
Post Detail Custom Fields - Fixes T131

Summary:
* styles post detail custom fields
* fixes T131

In order to fully test, I need more custom filed data.

I am not in love with the post detail layout. @digitalafrican, @sebm90 and I are talking ui this week and this layout may be affected. I will revisit after that conversation.

Test Plan:
* load post detail page
* add data to custom form fields
* check styles on output

Reviewers: shadowhand, rjmackay

Reviewed By: shadowhand, rjmackay

Subscribers: bodacea, digitalafrican, sebm90, dkobia

Maniphest Tasks: T131

Differential Revision: https://phabricator.ushahidi.com/D187
Put real message stats into workspace panel, refs T165

Test Plan:
- Login
- View workspace sidebar

Reviewers: dkobia, eyedol, bodacea, rjmackay

Reviewed By: rjmackay

Subscribers: srutto

Maniphest Tasks: T165

Differential Revision: https://phabricator.ushahidi.com/D212
Fixing message API test failures

Summary: - Clarify ambiguous columns in SQL query.

Test Plan: ./bin/behat -c application/tests/behat.yml application/tests/features/api.messages.feature

Reviewers: lkamau, eyedol, shadowhand

Reviewed By: shadowhand

Differential Revision: https://phabricator.ushahidi.com/D213
Fix the api.stats.feature test, refs T165
Link prev/next post buttons to the prev/next posts in the PostCollection

Summary: Currently limited to current page of the collection.

Test Plan: Go to an individual post, try navigating back and forth

Reviewers: eyedol, shadowhand

Reviewed By: shadowhand

Maniphest Tasks: T344

Differential Revision: https://phabricator.ushahidi.com/D192
Update built css
Revert "Post Detail Custom Fields - Fixes T131"

This reverts commit 72b7fd2499cd84b6c27f1dd3b59650c103bd71b8.
Post Detail Custom Fields - Fixes T131

Summary:
* styles post detail custom fields
* fixes T131

In order to fully test, I need more custom filed data.

I am not in love with the post detail layout. @digitalafrican, @sebm90 and I are talking ui this week and this layout may be affected. I will revisit after that conversation.

Test Plan:
* load post detail page
* add data to custom form fields
* check styles on output

Reviewers: shadowhand, rjmackay

Reviewed By: shadowhand, rjmackay

Subscribers: bodacea, digitalafrican, sebm90, dkobia

Maniphest Tasks: T131

Differential Revision: https://phabricator.ushahidi.com/D187
Rebuild CSS
Raname Categories to Tags everywhere. Fixes T423

Test Plan: See post listing and detail. Now uses Tags

Reviewers: dkobia, seth, shadowhand

Maniphest Tasks: T423

Differential Revision: https://phabricator.ushahidi.com/D207
Rename category-icon images to tag-icon
Rebuild CSS
Remove modernizer and selectivizr since we're not using them
Rebuild the media API endpoint with clean code, refs T444

Summary:
- add spec for "create media" use case
- add spec for "file upload" tool
- register servies to support file uploads and media create
- implement filesystem storage by using PHP League's Flysystem
- complete the media POST endpoint

Test Plan:
```
./minion --task=migrations:run --up
bin/phpspec run
bin/behat -f progress -c application/tests/behat.yml application/tests/features/api.media.feature
```

Reviewers: eyedol, dkobia, rjmackay

Reviewed By: rjmackay

Subscribers: bodacea, srutto

Maniphest Tasks: T444

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