Advanced Patterns in Cloud-Hosted Apps for Microsoft SharePoint