settings: more comments, reorder settings
urls.py: cosmetic changes, added comments, reorder
detectip: it is not valid without a sessionid, remove the view

and as we currently use the sessionid, we should also name it like that.