This patch moves the logic and lpm code to a new file. It refactors the strength emitting routine and adds support for emitting the standard tran style of gates.