Introduce offline flag

Do not execute build tragets requiring an internet connection, if
-Doffline=true is specified on the CLI.