added salting, session config and various fixes, additions