Relocated majority of foundry into lib
Fixed up nuances and tests are green
Release 0.6.0