Returns a library for a given path. If no library exists for this path yet, this method will create and return one.