respect proxy on login
code cleanups and refactorings, moved util functions into a separate
module, also download the about json file
trim path parts instead of only the filenam (still a hack but should
crash less), bumped version