Add check for Scroll Position before Scroll

I came across this recently and it seems like a good idea (eg, I've added it to my own site). This checks the scroll position before scrolling in order to avoid doing the "hide address bar" scroll when the user has already begun scrolling (which would then be quite annoying to get forced back to the top of the page). This code also has the additional benefit that if the page is scrolled part way and then manually refreshed/reloaded it should refresh at its proper scroll position instead of jumping back to the top.

Credits:
https://gist.github.com/1183357
http://24ways.org/2011/raising-the-bar-on-mobile
Remove Top-bar background color conflicts for small screens
In large screens we may hit the bottom of the page and dont reach the top of the last magellan-destination, so lets force it

Also did some elm caching
Handle different cases of input placement regarding the label for custom radio and checkboxes
Connected labels to fields with for/id
Connected labels to fields with for/id
Merge pull request #1160 from peterk/master

Connected labels to fields with for/id in example forms
Merge pull request #1159 from vitoravelino/master

toggleRadio must only search for inputs in $input's form, not all over the DOM
fix typo
bumped version
Merge branch 'master' of github.com:zurb/foundation
fixed another typo
Added support for additional inheritable classes
Added multiple dropdowns to topbar test

Added multiple dropdowns to test for reproducing a bug with multiple
drop down behaviors on mobile. Main Item 3 >Dropdown Level 1a & 1b

Opening Level 1a on mobile reveals both Level 1a & 1b
Fixed bug with multiple 2nd level dropdowns
Fix text selection issue in clearing.
only reset degrees when timer reset is true
Only consider visible buttons when calculating dropdown position.
added python pyramid scaffold link to README
fixed timer display issue when resetTimerOnClick enabled #1173