added tests, updated http and smtp capabilities

hope it's okay to track the html files too :-)