Allow to pass regular express to match term names to various API methods. Added javascript object as hash checking.