Exposed the extensions argument in the cli
Added extensions option for non-cli uses
Unit tests covering the extensions argument
Merge branch 'exposing-extensions-arg'