Feature/stream rewrite

Now has all the original functionality of lever, plus a bunch of streams based stuff.