(Bug 5138) Add media properties

This creates media_prop_list, populates some properties into it, and
updates the LJ::load_props method to use modern error reporting (Carp)
and database handle usage.