ARMORY-159 - Make sure setOnlineMode does necessary checks

Adapt ArmoryQt code and put it into armoryd, making various checks
before the armoryd server can start. The code will be refactored/unified
at a later date.