Add footnotes extension to showdown

refs 1318
- based on Markdown Extra https://michelf.ca/projects/php-markdown/extra/
- allows [^n] for automatic numbering based on sequence
Allow notifications to sit over the nav bar

Closes #4379

- Adjusts the `.viewport` `z-index` propetty to allow notificatons to sit over the nav bar

Looks like a weird fix, but inheritence of z-index was the issue here.
Cleanup layout Sass

Continues on from #4441

- Reformats the layout Sass files (comments, white space)
- DRY up small chunks of CSS to make it more comprehensible
Change anchors without hrefs to buttons.
gh-trim-focus-input autofocus fix for iOS Safari

Closes #4446
- Mobile Safari doesn’t support the HTML5 `autofocus` attribute, but
also doesn’t play nice with jQuery’s `focus()` and `select()` methods.
- Mobile Safari wouldn’t automatically select the input field anyway,
so this PR simply removes the “jumping input fields” error without
changing any actual behaviour.
- Disallowing the programmatic selection of input fields (with select,
focus or similar methods) is apparently considered a feature rather
than a bug (ref http://bugs.jquery.com/ticket/12789)
- `autofocus` attribute is now only set on non-iOS devices
Merge pull request #4550 from felixrieseberg/iss4446

gh-trim-focus-input autofocus fix for iOS Safari
Merge pull request #4568 from jaswilli/buttons

Change anchors without hrefs to buttons.
Merge pull request #4270 from mispy/footnotes2

Footnotes extension for Showdown
Merge pull request #4561 from PaulAdamDavis/sass-layout-cleanup

Cleanup layout Sass
Merge pull request #4544 from PaulAdamDavis/notification-over-nav

Allow notifications to sit over the nav bar
Remove console.log

Refs #4270
Merge pull request #4571 from jaswilli/cleanup-4270

Remove console.log
Tag Settings Menu Autosave

closes #4517

- adds autosave to name/slug/description fields in TMS
- adds nprogress indicator when saving
Add limit=all consistently to users, posts & tags

refs #623, #4348

- this fixes sitemaps to list all posts, pages, tags and users
- makes the API behave consistently across all paginated resources
Fix image helper for subdirectories

closes #4566

- Url created within urlFor with image context rather than calling createUrl function
Merge pull request #4567 from cobbspur/imagesubdir

Fix image helper for subdirectories
Merge pull request #4564 from Gargol/issue-4517

Tag Settings Menu Autosave
adds code injection admin frontend implementation, handlebar helpers + settings

escaping handlebars
Merge pull request #4573 from ErisDS/limit-all-sitemaps

Add limit=all consistently to users, posts & tags
Add XSL for Sitemaps

fixes #4555

- There's no easy way to declare an XSL with the node xml module, so I
  needed to move the declarations to both be strings
- Ideally the code to serve the XSL would also be inside the sitemap
  module, but I think we need to refactor a bit to get there easily
- Added the XSL from #4559, with minor amends to make the tables and urls
  display correctly