Rest Script Update

The rest script can now take POST input when making a request. Soon delete and put will be added.
Also added new parameter 'request_type' to return of rest data (loadRestData()), which shows if
request was get, post, put, or delete.