borrow apple's internal struct tm -> time_t conversion

as long as we don't care at all about leap seconds, we should be fine.
move lua over the ug_guts one
move test.lua -> rails.lua
if included, call "on_eof()" in lua
add function prototype