Merge refactor to Django rest framwork and separate GUI