Converted thundermaps module into a class. Tidied up trademe module.