fix admin header links and layout, fixes #283 #292 #275;
save course material text, fixes #283
fix karma tests and pep8 issue