Implementation of a type-generic thread-safe hashtable. This will be used to replace a lot of O(n) list-searches in Redroid where hashtables are more appropriate. It will also be of use as an additional feature of the module API.