Add tests.
Add constructor call callback and create PHP objects as needed.
Call __construct function, if available.
Throw exception if __construct is not public
Handle non-construct call
Merge pull request #18 from stesie/fix-constructor-call-master

Allow PHP object construction from JavaScript context