Learning Features and Abstract Actions for Computing Generalized Plans