Filter by applicationpermit availability in courses list

closes #6
Check the last allowed appliance date for courses
Delete all related applicationchoice objects whenever an application object get deleted

fixes #19