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. 
Added comments. Also added comments for another iPad fix around ln 103.