Git commits in Moodle 2.6.6 by Simey Lameze

commit be0d33ac97375dba850a2435ffbfa0c0d0addcdb
Author: Simey Lameze <simey@moodle.com>
Date:   Tue, 16 Sep 2014 10:16:37 +0800
Tag:    v2.6.6

MDL-44257 lib: fix the attachment code to accept tempdir and dataroot.

commit f96d071f2a6839f4d84d37abf22e1976a2359b6a
Author: Simey Lameze <simey@moodle.com>
Date:   Fri, 12 Sep 2014 16:45:49 +0800
Tag:    v2.6.6

MDL-44257 message: added test to make sure the stored file still exists

commit 0e32d35effcc16f515fc0547a874f7017e577db7
Author: Simey Lameze <simey@moodle.com>
Date:   Fri, 25 Jul 2014 11:44:44 +0800
Tag:    v2.6.6

MDL-44257 message: check if the attachment exists before remove it