Initial commit.

Including simple library, template main function, and Tcl unit testing
harness. Second unit test currently produces error after 0 simulation
time for unknown reason.
Added GPLv2 license.