Git commits in Moodle 3.1.6 by Ankit Agarwal

commit 927a6221aa5afcce552a472a4181026958a0bbc0
Author: Ankit Agarwal <ankit@moodle.com>
Date:   Wed, 26 Apr 2017 11:46:25 +0800
Tag:    v3.1.6

MDL-58701 phpunit: Add tests for external_settings

commit e63627f50ebbf21e573faba7da1fa05f3b2fcbbb
Author: Ankit Agarwal <ankit@moodle.com>
Date:   Tue, 25 Apr 2017 15:16:46 +0800
Tag:    v3.1.6

MDL-58701 libraries: Use pluginfile.php as rewrite url for web req.

commit 2bbd04781cefe545c1243e3fa7c3dbbdbdddbdd3
Author: Ankit Agarwal <ankit@moodle.com>
Date:   Mon, 24 Apr 2017 14:17:29 +0800
Tag:    v3.1.6

MDL-58691 exporter: Filters should always apply for web pages

commit acdf91203c4e2bdbebca71f56d3d7a082a80904e
Author: Ankit Agarwal <ankit@moodle.com>
Date:   Mon, 03 Apr 2017 11:53:58 +0800
Tag:    v3.1.6

MDL-58465 unittests: Fix invalid use of exception