CLI php script to patch joindin database - get options and init
Runs the patches in order
Added some CLI help text
Path passed in cli option should be to joindin-api, not joindin-api/db
Use DIRECTORY_SEPARATOR
Update README.md with info about php updater
Check the max patch number in the db
Create the matchedNums array first
Add patch for API key link on comments.
Retrieve OAuth consumer details during request.
Save consumer details for event comments.
Save consumer details for talk comments.
Add an explicit version property to Request as it's set in index.php anyway.
Allow logging in using the OAuth password grant.

This is an initial commit. Tidy up required.
Add configuration

The config.php file is a sibling to database.php and currently holds the
list of client ids that we allow to authenticate with the password grant
type.
Refactor createAccessTokenFromPassword()

Split up what it does into separate methods and also tidy up some
whitespace issue in this file.
Only look up consumer info when posting comments.
adding some friendlier error messages when required fields are missing
allow users to log in on more than one device
Merge branch 'akrabat-web2-login'