Former US President Barack Obama opened his presidential centre in Chicago, using the occasion to call for unity.