Use Curl not file_get_contents

As file_get_contents isn't supported on my host, I switched to Curl
Fixed referer to geturl
Also use curl for Post
Merge pull request #4 from PanManAms/master

Use Curl instead of file functions