updated schema to allow optional fks
added the updated adapter that handles nested url for http post
updated the adapter
moved the session relationship above identity again as order does not matter
fixed the adapter to use type instead of key