Import sessions middleware from its new origin.
Adding Facebook endpoint and a few renames.