implemented checking the existence of attributes; checking already added usings, references, images, xmlns; fixed bug with save-session and login-request