How to Design Secure Applications in the Cloud