Developer-980 Solutions Pages

This is very much a WiP at the moment. Feel free to take a look, but bare in mind that there is lots of stuff not working and probably a bunch of temporary hacks. 
why declare the var at the top?