add_tables.c

Moving table code into its own file, added "lookup" functions and take
advantage of them in the bigger code (that translates node_id all the
way to next-hop MAC)