IE and device width meta, consistency

Added bootstrap IE meta and initial device with scale meta.

Changed some consistency around php strings
Minor fixes and housekeeping

Fixed some incorrectly placed php breaks
Removed second search from renderPortals()
Cleaned up code