Resolutions of a-stable ideals