Add composer.json and applied fix for an old issue

This would resolve:
- https://github.com/Xajax/Xajax/issues/26
- https://github.com/Xajax/Xajax/issues/20