Added basic session functions
Merge branch 'master' of https://github.com/ascent12/gtorrent-1