Merge branch 't3_middleware'
ticket:3 - fixing migrations
ticket:3 - fixing migrations
ticket:3 - fixing migrations
ticket:3 - fixing migrations
ticket:1 - fixes
ticket:1 - fix Makefile
ticket:1 - fix Makefile
ticket:3 - fix midelware, add tests