Advanced Ajax: Architecture and Best Practices