added images to statis
better handling of cas connection
improved exception handling
improvements in profile template