Testsuite passes + some minor changes

Updated testsuite so it passes after commit you reverted 18c37 because of this issue.

Certificate and private can can be passes as PEM strings. This is useful when certificate is owned by root and application changes it's effective user before calling libxr (so libxr cannot read it).

Only problem, you will probably want to change version numbers in configure.ac in AC_INIT and LIB_XR_VERSION.