add telnet library.
change options parsing to quit instead of running the main loop when -h is found.
fix userdata not passed to callback function in net_driver.
add application structure.

the application structure will handle all active sessions, as well
as knit together everything else.