Add apiPost() and fix apiGet() to send the correct headers.
Login functionality.

Add the relevant routes and supporting classes to allow a user to log in to the API using the password grant type.
Add ability to view and comments to events.
Talk entity is not an API
Consolidate Slug handling to Model\API\Event

Slug handling was handled in Model\API\Event and Model\Event. This
commit consolidates to just Model\API\Event as I think that the Event
model should not be database aware.

Arguably, Model\API\Event shouldn't be database aware either and there
should be a Service\Event class for this. That's left for another day.
Remove /view segment from URL.

The URL scheme for events just needs to be /event/{slug}.
Merge pull request #48 from akrabat/talk-model-1

Talk entity is not an API
Remove Google Analytics key from config.php.dist

It shouldn't be in the config dist file as it's only required in live's
config.php.
Merge pull request #51 from akrabat/remove-analytics-from-config

Remove Google Analytics key from config.php.dist
Merge pull request #50 from akrabat/tidy-url

Remove /view segment from URL.
Introduce a User entity.
Changed uris from schedule to point to configure baseUri
Store the logged in user's info to mongo
Move fully qualified class name to a use statement
Added slugify global function
Added slugify global function
Merge branch 'user-profile' of https://github.com/akrabat/joindin-web2 into feature/add-talk-page
Added mongo talks cache one api request
Routing works and gets a talk from the API
Talk renders, can't add comments yet