Fixed the API so it now works from a webpage, not just the command line

The PHP library was not working within a web page if someone wanted to create a website based solely on YouTrack issue creation, so I fixed this and is all working fine now.