export both getOptions and getBaseOptions from getOptions.js

Also updated index.js to prevent any breaking API changes and added
tests around both getOptions and getBaseOptions.