Make various minor changes and simplify code

changed the way cookies are handled, now uses http.cookiejar

Submit and Post are now methods on session

removed some code duplication