Added the django rest framework into the requirements list
Complete refactory for clarity. Everything left tested and ready for extension