refactor row decoding
clean up storage.js
switch from routes to routes-router module for rest routing