More cleanup and some development:
- removed dead code from nld_signal.h
- removed m_last_Q and all callers; if a device depends on state let it maintain it.
- added development on a generic device based on truthtables.