Pro-US Palestinian PM quits, opens West Bank door to Hamas