Loading Categories from the API.

Also fixing event handlers to listen on the document so they can bind to
the content created by javascript.