Use urlencode() for link parameters.
Clean up some Javascript and some small styling changes for homepage elements. Also add in missing <ul> tags.
Forgot to add to last commit.