refactored maintaining presence into seperate package

Signed-off-by: Chris Adams <cadams@pivotallabs.com>