Implement serializable for session stored classes
Don't store FrameworkProject class in session
fix #1036