Key scanning

Scans keys on the server and decides if they should be added or removed. 

@computmaxer 
@organman91