Created attributemanager to handle session attributes. Refactored files.