Refactored all libtcod function to own namespace

This is preparation for replacing libtcod with curses stuff, or
whatever.