Changes to formatting
Moved SLD response handler into own function, outside of inner function
Changed cookie name to a variable instead of using a string everywhere
A bit of cleanup on session loading
More cleanup and syntax error fixes
Formatting
Merge pull request #767 from isuftin/master

Formatting and cleanup