Change the semantics of blocks_print_adminblock() to make life easier to developers who use pages. Conversely simplified the code a bit in courses.