Some refactoring (#67)
Some refactoring (#67)

* Added an 'asPromise' utility function

* Prevent un-used options from being passed to OpenFin

* fixed linting issues (which found a few bugs!)

* Addressed review feedback

BenLambertNcl/ssf-desktop-wrapper,ScottLogic/ssf-desktop-wrapper,BenLambertNcl/ContainerJS,DevAndyLee/ContainerJS,DevAndyLee/ContainerJS,BenLambertNcl/ssf-desktop-wrapper,BenLambertNcl/ssf-desktop-wrapper,jleft/ssf-desktop-wrapper,BenLambertNcl/ContainerJS,jleft/ssf-desktop-wrapper,ScottLogic/ssf-desktop-wrapper,BenLambertNcl/ContainerJS,DevAndyLee/ContainerJS,jleft/ssf-desktop-wrapper,jleft/ssf-desktop-wrapper,DevAndyLee/ContainerJS,JohnEz/ssf-desktop-wrapper,ScottLogic/ssf-desktop-wrapper,JohnEz/ssf-desktop-wrapper,JohnEz/ssf-desktop-wrapper,BenLambertNcl/ContainerJS,JohnEz/ssf-desktop-wrapper