Add some more hashmap functions

And port kernel console command lookup to use a hashmap.