Initial commit of a not fully ready but already useable loops framework.