Add residence lib

Will use this in residence AutoPurge