Major config rewrite + basic config editing form (incomplete)