format management (aka resource types)

added pk to bhdFormat
added previewfileid to bhdResource
updated dbml
added screens and api for format management