Secured PHP RESTservice