Add two utility functions
Add two utility functions

These both are work with/on the Result type, so we add them to
BasicTypes. The functions will be used as more generic versions of
some more specialised functions that are right now spread across the
modules.

Signed-off-by: Iustin Pop <acf83a5274f31a43af6b914614365999469c1a31@google.com>
Reviewed-by: Guido Trotter <f62ca4d5358bdaeef0e50e57f9f7e231de63727e@google.com>

mbakke/ganeti,dimara/ganeti,mbakke/ganeti,ganeti-github-testing/ganeti-test-1,andir/ganeti,andir/ganeti,yiannist/ganeti,apyrgio/ganeti,ganeti/ganeti,onponomarev/ganeti,leshchevds/ganeti,ganeti/ganeti,dimara/ganeti,yiannist/ganeti,ganeti/ganeti,leshchevds/ganeti,leshchevds/ganeti,apyrgio/ganeti,apyrgio/snf-ganeti,grnet/snf-ganeti,bitemyapp/ganeti,apyrgio/snf-ganeti,onponomarev/ganeti,mbakke/ganeti,grnet/snf-ganeti,bitemyapp/ganeti,andir/ganeti,ganeti-github-testing/ganeti-test-1,yiannist/ganeti