Updated a number of files

Added the picture search api.
Fixed the user themes throughout the site.
Plus I clean up the cod a bit and commented more.