Moved common template code to shared class.
Baked hash into assembly loader fixes #24