Refactored assignments app.

I refactored the assignment app to use class based view instead of functions. Also, on several placed unused code is thrown out or replaced with newer ones (e.g. I changed model_url to model|absoluteurl:'view')