Isolated

All 'server/database' operations can now be switched off by setting
servermode to false.  This allows testing of the algorithm when not
connected to the database.