MDL-25500 Lock: Unit tests have found that MySQL locks are broken

Removing the MySQL lock factory, the only safe way to use this MySQL API
would be to open a new DB connection for every lock. Record locking is a decent
fallback.
Merge branch 'MDL-25500-master-fix1' of git://github.com/damyon/moodle
MDL-43450 behat: Checking the ->behat_* vars contents before showing the steps list
MDL-42928 Filepicker: Disable behat tests run by phantom

There seems to be a bug relating to overflow: hidden on the body tag in
some cases which is only showing for dialogues which belong to the
filepicker.

Disabling these for the moment as this issue may be related to MDL-43712
which is a work in progress.
MDL-43661 use new edulevel in all existing events
MDL-37658 add new logging API with basic implemenation
MDL-37658 logging: fixed bug in legacy logging
MDL-41266 move reader access control out from manager

We need to let reports decide if they want to use capability to access readers.
MDL-41266 logging: Legacy reader should convert passed courseid to course in sql queries
MDL-37658 logging: convert all standard log fields to legacy log fields
MDL-43682 logging: Add a trait to group together common methods for reports
Added log life time to standard store
MDL-43681 report_log: Repoduce log reports to use new logging system