The Turkish referendum resulted in a narrow victory to President Recep Tayyip Erdogan's long-time plans to greatly expand the powers of his office.