what was the original purpose of the kremlin