Hamas moves away from violence in deal with Palestinian Authority