check that session_id exists before trying to renew session from the db
record versioning must ignore tables without _id field.
added empty line
"reference table.field" type bugfix
Merge pull request #113 from michele-comitini/basic_auth

Session renewal fix + record versioning fix + postgres fk reference fix