Context aware navigation for the specs page

Taken inspiration from http://www.phptherightway.com/ and quickly wrote my own version of their navigation logic and formatted the spec page to work accordingly. Is useful for keeping the nav in view, adding context and also looks nice.