first among equals , a thirty year old corsican general , napoleon bonaparte had quickly established his primacy over his complaisant co-consuls , and within five years , in 1804 , he had taken the final step and declared himself emperor .