SAP restructures, aims for the clouds