Changed homework models #49

Replaced lesson by course and period
Fixed hwbomb function due to model change #49
Saving homework works too #49

Only the error feedback to go!
(Re)styled homework form #49