Added ApplicationContext, removed singleton interface from authentication, authorisation and some other classes

Signed-off-by: Alexander Book <redchrome@gmx.de>