* Fix AccountTest tests.
Update the model factories not to expect a constant value for account_id.
Add various missing relationships in the model factories.
* Fix AddressTest after the addition of foreign keys.
* Fix ContactTest after the addition of foreign keys.
Set contact/account before saving a special date using Contact::setSpecialDate or Contact::setSpecialDateFromAge.
* Fix DayTest after the addition of foreign keys.
* Fix EntryTest after the addition of foreign keys.
* Fix GiftTest after the addition of foreign keys.
* Fix JournalEntryTest after the addition of foreign keys.
* Fix NoteTest after the addition of foreign keys.
* Fix NotificationTest after the addition of foreign keys.
* Fix PetTest after the addition of foreign keys.
* Return the account id and not the account object in many model factories definition.
* Fix ReminderTest after the addition of foreign keys.
* Fix SpecialDateTest after the addition of foreign keys.
* Fix UserTest after the addition of foreign keys.
* Make instead of creating in Contact::logEvent() as we cannot create an event without giving it an account_id.
* Fix ActivityTest after the addition of foreign keys.
* Fix SendNotificationsTest after the addition of foreign keys.
* Fix SendNotificationsTest after the addition of foreign keys.
- Remove the test_it_deletes_the_notification_if_contact_does_not_exist test because on deletion of a contact, all his associated notifications will be deleted due to cascade constraints.
* Fix SendRemindersTest after the addition of foreign keys.
- Remove the test_it_deletes_the_reminder_if_contact_doesnt_exist test because on deletion of a contact, all his associated reminders will be deleted due to cascade constraints.
* Fix TagTest after the addition of foreign keys.
* Update the logic in Contact::removeSpecialDate so that a foreign key constraint is not triggered when removing the associated relation.
Set a the partner gender before saving the partner as the gender is mandatory.
Add the ConvertEmptyStringsToNull middleware.
Set the metThroughId default option as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Set the activity_type_id as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Mark the Reminder title has required.
This is the first part of the API. It supports most of contacts, as well as the
journal. This PR also brings Monica to Laravel 5.5, as the API required it with
the new concept of resources. It needs to run `php artisan migrate` as well as
`php artisan passport:keys` to generate the access tokens needed for the API.