Dramatically reworked svallet.js to separate the logic utilities from the UI code.
Pulled the sections of code that you would reasonably call a library (server queries and data fusion) into their own files, both on the client and server.