Tokenizes versions using the same algorithm as in apk-tools.
Version comparisons will come in a future MR.
cc @jdolitsky @kdaudt