Fixed cogwheel update
Adds function to check superuser status

also adds login include_once for database
Updates create course with superuser check
Fix crash in menulist

Menulist was using an old table that has been removed from the database.
Moved the code over to PDO while fixing it.
Merge branch 'duggasys-master' into duggasys-CourseMenu
Updated dragupdate message

Changed the style, timedelay and position of the message that drops down
when altering the elements in the list.
Added dragupdate message to menulist

This message is useful even for the menulist-table when altering it
Cleaned up duggasys.js
Fixed cogwheel update security
Cogwheel update
Added security in menulist + other changes
Fixed placeholder for courses with no content

Also fixed sessionkind for super users
Fixed read access checking in courses
Added missing file in menulist
Menulist updates + noid redirection bug fix
Fixed add course button bug
Added coggwheel function

Added a row where you can edit the name, link and visibility on every
row when clickling the coggwheel.
Small changes
Added delete button functionality in sectionlist
Fixed drag bug when course had no content