Merging all changes together. TENMARKS-4933

Merge changes from iPad and web version of mathquill together. Kindle app uses the same version as iPad. It may cause an issue since the web has changes specifically for Android. But I'm assuming Kindle's "user agent" is "Kindle" instead of "Android". Even if it is Android, the change will still most likely work. 
would be helpful to have a comment here for the Android and iPad cases