Reordered get parameters in Tls_NewX509Obj to follow RFC 5280 section order.
Added get self issued, Key usage, Extended Key usage, and purpose values.
Added more comments, optimized code, etc.