Merge pull request #26 from xnova/master

Address some shortcomings with wallet.js
use options in wallet contructor & add tests

[#26]