writed wsgi.py, fixed some stuff, created some tests