added support for custom html templates with associated stylesheets and images

reorganized folder structure to conform with structure expected to locate template files

also made it use a default substitute cover if no cover is found

encountering inconsistent use of double and single quotes, tryin to keep it consistent but will replace single quotes with double quotes in areas I modify since these seem to prevail.

wherever encountered in functions affected by my changes, references to $config replaced by a function call to retrieve this setting.