Huge restructuring of the code for frozen denstity embedding (FDE) calculations. Basic functionality remains the same.