Conditionally require functions.php

This allows a global version of React\Promise alongside a local version.

Fixes #23