Don't create a new identity if it exists already.
Refactored and fixed bootstrap process.

This fixes a bug where htons would be called twice on port numbers
after an update to libtoxcore.