MLCapsule: Guarded Offline Deployment of Machine Learning as a Service