Upgrade to Bootstrap 3

Rethink whole layout and UI to take advantage of offcanvas layouts, viewport filtering and other features and simplifications.
Use def with parentheses when there are parameters.