Added private-key converter

Added some code to convert between various private-key formats. Check
comments in function xptMiner_initateNewXptConnectionObject() for more
information.