Implement logging and move to django 1.7