Single file library dep

Please don't merge this until people have had a chance to make comments on it.