fix import of obelisk.js
change style.
refactor some code from angular wallet to api.