moved resolving redirects into API class
add API.edit() method
add fix-links-avoid-redirect.py