Moved CSS into new file. Moved js and css out of extra directory into lib directory. Refractored large portions of code. Added filter for how many items to display. Left ability to edit metadata in.
Added some checks on user permissions (just in case).
Some more general clean up and fixes.