add files to split lua.cpp and change type of typekey variables.

changed the type of the dlgclbkKey .. variables so we don't have to cast
everytime we use it.