added basic functionality for auth example and started cleaning up the foundation integration