PhabricatorAPI static constructors throw exceptions
Summary:
PhabricatorAPI class offered a incoherent behavior for forInstance
and forProject methods.
This change standardizes the behavior to throw an exception on
failure in forInstance of forProject methods.
Test Plan: New unit tests
Reviewers: dereckson
Differential Revision: https://devcentral.nasqueron.org/D606