The sixth president of Jamaica, P J Patterson, resigns.