adds referrer model and unit test
adds session model and unit test