Transform rebar3 ct input

(Pull request now pointed at the correct repo).
Validate and transform input to rebar ct, this involves splitting up strings, converting things to atoms etc.

It does not validate that the input is correct, that means enums are not checked etc. That should be added later so we can return more readable error messages.

This will need some review (please!) but should be enough for rebar/rebar3#25.